Developer forum

Forum » Ecommerce - Standard features » eCom groups - Do not include URL in subpage URLs

eCom groups - Do not include URL in subpage URLs

Anders Ebdrup
Reply

Hi,

 

How do I make the setting, "Do not include URL in subpage URLs", work for the eCom groups? Even though I have checked the setting the name "produktkatalog" is included in the urls for the groups.

 

The thing is that all the groups should be outputtet on the page "Emner", but I cannot attach the "eCom groups" to this menu item as the feature for settings start and endlevel does not work for the dwnavigation when having the "eCom groups" attached to the node.

 

The only acceptable name for the url prefix is "emner" and not some dummy name.

 

Best regards, Anders

Capture.PNG

Replies

 
Nicolai Høeg Pedersen
Reply

Hi Anders

 

Have a look at thise thread:

http://developer.dynamicweb-cms.com/forum/templates/layoutbased-design-and-ecom-menus.aspx

 

The "Do not include URL in subpage URLs" only work for pages, hence the naming. You can also in your XSLT hardcode the ID of the page you have the product catalog - then the URL will change accordingly.

 

BR Nicolai

 
Anders Ebdrup
Reply

Hi Nicolai,

 

Thanks, but I have already been there :-) I was just trying to find a way when startlevel and endlevel is not working for eCom navigation, but maybe there is not solution to my problem

 

Best regards, Anders

 
Nicolai Høeg Pedersen
Reply

Not sure I understand how you want the URLs to be?

 

/emner/productName.aspx

 

or just

/productName.aspx                                                                

Or how?

 
Anders Ebdrup
Reply

Hi Nicolai,

 

I would like the url to be "/emner/productname.aspx", but at the same time I need to display all the groups at "/emner.aspx".

If I attach the eCom navigation to "emner" then it will be displayed in the navigation unless I hardcode something in my xslt, so right now I have created another menu item which holds the eCom navigation, but I do not want to have the name of this dummy menu item included in my urls for the products.

 

Let my know if it is unclear :-)

 

Best regards, Anders

 

 

 
Nicolai Høeg Pedersen
Reply

Well, that is what I believe is explained in the thread I provide. There you find some XSLT's which are not hardcoded, but behaves according to how eCommerce XML is being created.

 

You can also in a modified LiClean.xslt template, let it react on the startlevel and endlevel from the LayoutNavigationSettings node in the navigation XML.

 
Anders Ebdrup
Reply

Hi Nicolai,

 

Great, I will try to implement the startlevel and endlevel constraints in the xslt instead. Do I need to have some concerns about performance when the eCom navigation consist of 2711 groups divided into to languages and the solution has to generate this navigation xml?

 

Best regards, Anders.

 
Nicolai Høeg Pedersen
Reply

Hi Anders

 

It is cached most of the time, but of course a big XML document can be an issue.

 

You can add a &debug=true to a URL to see the execution time of i.e. navigations. If you see something wrong there, we might have to look into another solution.

 

BR Nicolai

 
Anders Ebdrup
Reply

Hi Nicolai,

 

Alright sounds great! :-)

 

Another thing, how do I disable the possibility for users to add e.g. "debug", "savexml" etc. as query parameters?

 

Best regards, Anders

 
Anders Ebdrup
Reply

Hi Nicolai,

 

I do have a problem with this huge xml-document as it takes 0,6 seconds for every page load even though nothing is rendered from the ecom navigation.

And it means that the site now has some performance issues

 

Best regards, Anders

 

You must be logged in to post in the forum