Developer forum

Forum » Ecommerce - Standard features » Querystring parameter to change product list template

Querystring parameter to change product list template

Nuno Aguiar
Reply

Hi,

 

We sometimes have to display different product lists views that are more than just css changes. Unfortunately this means an entirely different HTML structure.

 

Sometimes this means the developers use querystring parameters to render A, B or C, however because of the nature of how the template engine works, Dynamicweb actually renders all A B and C logic before it can decide which one to use.

 

My question is if there's a querystring parameter that overrides the product list template? This would allow us to have 3 templates (A B and C) instead of a 1 (or 1 + 3 includes), making this a lot more effective to render.

 

Best Regards,

Nuno Aguiar


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
There's a View parameter for this: http://manual.dynamicweb-cms.com/Dynamicweb-eCommerce/Modules/Product-Catalog/Change-view-of-product-list-through-the-querystring.aspx
 
Nuno Aguiar
Reply

Hi Imar,

 

Perfect, that's just what I needed.

 

Thanks,

Nuno Aguiar

 

You must be logged in to post in the forum