I have a quick question in regards to #8
Quote:
Originally Posted by instinctual
8. Similar to the above - what about if you want to show something specific to the category you're on? Well, similar situation:
Code:
{if $cat eq "9"}show this{/if}
|
Can this be set to a range of categories instead of one specific category?
example:
I want categories 250 - 290 to use a different subcategories.tpl
in customer/home_main.tpl I have:
Code:
{elseif $cat eq "250" or $cat eq "251" or $cat eq "252" or $cat eq "253" or $cat eq "254" or $cat eq "255" etc... }
{include file="customer/main/subcategories_2.tpl" cat=$cat}
is there any way to shorten that {elseif . . .} up to include the whole range?
TIA