Developer forum

Forum » Ecommerce - Standard features » RE: Product page

RE: Product page

Michael John
Reply

Hi,

On this page, http://gonge.net.dynamicweb-cms.com/sortiment/matematik/geometri, I'm displaying products inside a category. When clicking on a specific category, I would like the left menu to disappear, which is rendered on the page template with dwnavigation.

I've tried defining a product deatil module, but that would just add the page in the url:

  • Current product page url: http://gonge.net.dynamicweb-cms.com/sortiment/matematik/geometri/matematik-i-bevaegelse
  • New url, if product detail defined: http://gonge.net.dynamicweb-cms.com/sortiment/produkt/matematik/geometri/matematik-i-bevaegelse

What are my options?

 

Regards, Michael John


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Michael

Yes, you cannot avoid the URL.

Instead, in your layout template, you can do a conditional to see if you are rendering a product detail:

@if (string.IsNullOrWhiteSpace(Dynamicweb.Input.Request("ProductID")))
{
      <ul class="dwnavigation" id="leftnavigation"></ul>
}

Votes for this answer: 1
 
Michael John
Reply

Thanks! That solved my problem.

 

You must be logged in to post in the forum