Use URL Querystring within Basic Content block link via replacement

John Swidorski asked on September 28, 2016 17:57

Is it possible to use a content in a query string in a link within a content block?


then do a href="" link within a content block via some sort of replacement?

Thanks in Advance... John

Recent Answers

Trevor Fayas answered on September 28, 2016 18:46

k# should be able to do what you want.

{% querystring.q1 %} will give you ABC, {% querystring.q2 %} will give you DEF, and you can do whatever you want with them, like

{% convert.ToString(querystring.q1, "").replace("ABC","XYZ") %}

the Convert.ToString() is to make sure you get a string even if q1 is not passed.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.