Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Using URL Parameter for part of path location View modes: 
User avatar
Member
Member
paul.truman-sunmed.co - 10/24/2012 10:23:53 AM
   
Using URL Parameter for part of path location
Hey, I have a documents datasource that points to a directory in my site for its data.

What I would like to do (to re-use the same template) is to have a series of links so when clicked, it would re-load the page and change the datasource's path location based on the URL parameter attached to the link.

So if I clicked breezy, then the path the datasource would use is products/breezy/%

Is this possible to do?

User avatar
Kentico Support
Kentico Support
kentico_janh - 10/24/2012 2:30:07 PM
   
RE:Using URL Parameter for part of path location
Hello,

Of course, you can take advantage of query string macros and specify that path like:

/products/{%category|(default)default_category%}/%


And then just make your links like:

<a href="~/path/to/your/page.aspx?category=breezy">breezy</a>


Best regards,
Jan Hermann