Expand QueryString variables in templates
Forum » Wikidot version 1 / Requests and Ideas » Expand QueryString variables in templates
started by: WitnessWitness
on: 1206664990|%e %b %Y, %H:%M %Z|agohover
number of posts: 1
rss icon RSS: new posts
summary:
Use same expand syntax {$number_books} but pass values in a link instead of [[include]] tag
Expand QueryString variables in templates
WitnessWitness 1206664990|%e %b %Y, %H:%M %Z|agohover

Hi, templates can expand variables passed in like {$number_books}. Would be helpful to be able to link to a template page passing variables in a LINK, like mypage?num_books=20. This way, template can be used as is filling necessary info in a link. Say I have a page that is good for a number of stocks but has some elements that depend on a stock symbol. I can define it as a template but I need to create a separate page for each stock just to pass in symbol as a parameter. It would be nice if I can do that in a link reference directly.

unfold Expand QueryString variables in templates by WitnessWitness, 1206664990|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License