Page 1 of 1

how to use {get_template_vars}

Posted: Mon May 11, 2009 9:26 pm
by skully78
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

Re: how to use {get_template_vars}

Posted: Mon May 11, 2009 9:49 pm
by jmcgin51
I believe you need to use print_r

Re: how to use {get_template_vars}

Posted: Mon Apr 26, 2010 4:08 pm
by kbh
You need to modify your RewriteRule in .htaccess to let the "QUERY_STRING"-part be parsed by Apache.
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

Re: how to use {get_template_vars}

Posted: Mon Apr 26, 2010 4:40 pm
by calguy1000