Developer forum

Forum » Templates » Remembering and passing URL parameter

Remembering and passing URL parameter

Dmitrij Jazel
Reply

Hej DW guys,

Have a question here, I am trying to use standard dw eCom templates for now, building a prod catalog.

I need to find a way how to use "landscape and galeri" product list view.

Right now I am relying on URL parameter I am passing.

if I click on action button - it changes the view, and page changes the view.

Url gets a parameter set:

Produker/Belysning.aspx?list=list

The problem happens when I am trying to go to a subgroup, or navigate to other group - the url parameter disappears.

Any Suggestions how can I solve this one?

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

You have to modify the navigation xslt.

 

Create a XSLT variable that holds "&list=list" if querystring contains this information and append the variable to the link.

 

XSLT variables:

http://www.w3schools.com/xsl/el_variable.asp

 
Dmitrij Jazel
Reply

Hej Nicolaj,

Thanks alot for reply :-)

Regarding XSLT variables I have no question... but how do you read URL - and than extract a parameter out of it in XSLT?

Asides of all kinds of crazy string manipulations, maybe there is something that could make my life easier? :-)

 

I think some small example that is used in real life - could be more than enough, if there is such :-)

 

Regards,

//Dmitrij

 

 

You must be logged in to post in the forum