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
how to use {get_template_vars}
Re: how to use {get_template_vars}
I believe you need to use print_r
Re: how to use {get_template_vars}
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
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: how to use {get_template_vars}
I already blogged about how to do this:
http://calguy1000.com/Blogs/17/60/news-category-dropdown.html
http://calguy1000.com/Blogs/17/60/news-category-dropdown.html
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.