Developer forum

Forum » Templates » Make menu not collapse

Make menu not collapse

Per Ljung
Reply
Hi!

I have made a custom menu with Ecom groups using xslt. But when I click on the last level in the menu to show the product list, the whole menu collapses and the current postion is lost, is there a way to make the menu not collapse and remain the same?

Best regards,
P

Replies

 
Per Ljung
Reply

Sorry, wrong description about the problem. I want the menu remain the same even if you change to another page, e.g. click on a button 'more info' about a product. The other thing I described above works.

Best regards,
P
 
Nicolai Høeg Pedersen
Reply
Hi Per.

Make sure that the link to the product contains a GroupID parameter:

Use the linkgroup clean tag in you link to product detail:

<a href="<!--@Ecom:Product.LinkGroup.Clean-->" title="<!--@Ecom:Product.Name-->" class="productName"><h2><!--@Ecom:Product.Name--></h2></a>


 
Per Søgaard
Reply
Works great when linking to product detail.
How can I do the same when linking from a related product to the detail page of the related product and have it show with the correct subcategory shown in the menu?
Using the tag above it still shows the category of the page i come from and not the category of the related product.

 

You must be logged in to post in the forum