Can I have a link like this:
www.domain.com?page=thealias&colour=blue
then have some code in a template or global content block that does a switch like:
{if colour=='blue'}
do this
{else}
do that
{/if}
I'm not sure how to reference the variable in the template with the {if colour=='blue'} bit?
Any help appreciated - just point me in the right direction.
Thanks
Dan
Using get vairiable in url tomake a switch in template - SOLVED
Using get vairiable in url tomake a switch in template - SOLVED
Last edited by R0BINH00D on Thu Apr 17, 2008 12:26 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Using get vairiable in url tomake a switch in template
{if $smarty.get.colour == 'blue'}
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.
Re: Using get vairiable in url tomake a switch in template
I forgot to say thanks for this!
Thanks!
Dan
Thanks!
Dan