how to use {get_template_vars}
Posted: Mon May 11, 2009 9:26 pm
Hi,
Can anyone pls show me the light:
I am trying to use a url parameter like so: http://skully/portfolio/?view=list
which will be used to decide which news summarytemplate to show in my global content block like this:
{If $params['view'] == 'list'}
{news category="cat1" summarytemplate="summarylist"}
{else}
{news category="cat1" summarytemplate="summarygrid"}
{/if}
How do I get that parameter out the $params array and into my logic?
Awesome, thanks for any advice
Skully
Can anyone pls show me the light:
I am trying to use a url parameter like so: http://skully/portfolio/?view=list
which will be used to decide which news summarytemplate to show in my global content block like this:
{If $params['view'] == 'list'}
{news category="cat1" summarytemplate="summarylist"}
{else}
{news category="cat1" summarytemplate="summarygrid"}
{/if}
How do I get that parameter out the $params array and into my logic?
Awesome, thanks for any advice
Skully