How to show the webstore?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
8/1/2013 10:31:50 PM
Gravatar
Total Posts 7

How to show the webstore?

HI,  I read the article <Adding Custom Items to the Administration Menu>  so , I add  url="~/WebStore/ProductDetail.aspx"  links to show on the Administration Menu. The links show up, but webstore doesn's set up...why?

    <adminMenuLink  
            resourceFile="MyResource" 
            resourceKey="test extra link2" 
            url="~/WebStore/ProductDetail.aspx"
            visibleToRoles="Admins;Content Administrators"
        />

8/2/2013 6:45:17 AM
Gravatar
Total Posts 18439

Re: How to show the webstore?

WebStore is a separate feature designed to work in the context of a cms page. ie you have to add an instance of webstore to a page then webstore exposes its own admin links. it cannot work any other way and making new links to it from the admin menu is pointless.

The example link you posted would not work because:

1. resourceKey cannot have any spaces, you example indicates that there should be a file named /App_GlobalResources/MyResource.resx which probably does not exist but if it did exist resx files can never have spaces in the key

So that is most likely why the link does not appear. You may also see an error about it in the mojoportal log.

2. If you were successful in adding the link, the link would not work because the url ~/WebStore/ProductDetail.aspx expects parameters including the pageid, moduleid and productguid, without those params you will get access denied.

Actually when you create a product in webstore a friendly url will be created like /your-product-name-product and that friendly url will map to the real url /WebStore/ProductDetail.aspx?pageid=x&mid=y&product=z

so the url /WebStore/ProductDetail.aspx is generally never seen by users, instead they see the friendly url

​To use webstore first create a page to put it on then click edit this page, then add webstore to the page. After that click the administration link near the title of the webstore instance. From there you can create new products and offers. Note that first you create the product then you create the offer and add the product to the offer. The offer is where you set the price.

 

 

8/4/2013 10:09:20 PM
Gravatar
Total Posts 7

Re: How to show the webstore?

thanks a lot

You must sign in to post in the forums. This thread is closed to new posts.