![]() |
help with "if url display this, else display this"
I'm new to php & smarty languages so I'm sure this will be pretty easy. I'm trying to make my side navigation change on the help.php and ?section=* pages so they are different from the rest of the site. Here is what I tried but it didn't seem to do anything. I've been going through the smarty website but I'm a little in over my head I think.
Code:
{if $smarty.get.pageid eq "help.php"} |
Re: help with "if url display this, else display this"
Not quite right. Try this:
{if $main eq "help"} show this {else} show that {/if} You can see many of the $main variables in skin1/customer/home_main.tpl and help/index.tpl |
Re: help with "if url display this, else display this"
Thank you so much, that worked perfectly :)
|
All times are GMT -8. The time now is 03:23 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.