If Statement for any page?
I am using if statements to add category specific code to my site, using:
{if cat eq '1'}
code for category 1 page
{elseif cat eq '2'}
code for category 2 page
etc..
{/if}
I have 2 questions though:
1. How do you do the same for manufacturer, product and static pages?
2. I have roughly 15 categories and 25 manufacturers, so the code would be okay, i.e. not too long. But, my site has ~600 pages, so is there a more concise way of adding custom code to any and every URL?
Thanks,
|