Well we were close. Here is what works:
Code:
{if $location[1].0 eq "Livestock" }
{ include file="customer/menu_livestock.tpl" }
{elseif $location[1].0 eq "Horse"}
{ include file="customer/menu_horse.tpl" }
{elseif $location[1].0 eq "Pet"}
{ include file="customer/menu_pet.tpl" }
{/if}
I am wanting to take it one step further and include certain pages also. For example:
Code:
{if $location[1].0 eq "Livestock" or $smarty.get.pageid eq '1'}
{ include file="customer/menu_livestock.tpl" }
...
Which works, but I want to add mutiple pages. Like pageid 1,3,4,6,7,8 for the first section and 9, 10, 13, 14, etc for second section and so on and so forth. I'm not sure how to add the multiple pages without having to do them each separate. Like this -
Code:
{if $location[1].0 eq "Livestock" or $smarty.get.pageid eq '1' or $smarty.get.pageid eq '3' or $smarty.get.pageid eq '4' or $smarty.get.pageid eq '6' ....
This would get fairly messy. I'm looking for something more like this -
Code:
{if $location[1].0 eq "Livestock" or $smarty.get.pageid eq '1,3,4,6,7,8'}
{ include file="customer/menu_livestock.tpl" }
...
But I don't have a clue how to get 'er done.
Ideas?