Developer forum

Forum » Templates » Adding query string parameters in navigation template

Adding query string parameters in navigation template

Thomas Larsen
Reply

I would like to transfer the q parameter from the url to the links generated in the navigation template

Url: /Default.aspx?ID=1&q=Test

should result in the following links

<a href=”/Default.aspxID=2&q=Test”>Page 2</a>
<a href=”/Default.aspxID=3&q=Test”>Page 3</a>


Replies

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

Hi Thomass

In your navigation XML you have a node with the entire querystring:

<Global.Request.Query>?ID=3403&Purge=True&savexml=true</Global.Request.Query>

You need to do some magic on that, and you can add it on the href attribute.

BR NIcolai

Votes for this answer: 1
 
Thomas Larsen
Reply

Hi Nicolai,

A bit tricky, but it works

Thanks

 

You must be logged in to post in the forum