![]() |
If statement for help sections?
Here's an odd one - I'm trying to use an {if} statement to display an 'on' state to a tab for the different help sections - contact, main help page, etc. I would have thought it would be:
{if $main eq "help" and $section eq "contactus"} I've also tried a simple: {if $section eq "contactus"} Neither are working. Any ideas? |
Re: If statement for help sections?
The variable is passed through help.php as $section but is assigned to smarty as help_section
{if $help_section eq "contactus"} |
Re: If statement for help sections?
Ahhh...perfectly clear once you see it ;) Thanks Jon!
|
All times are GMT -8. The time now is 03:14 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.