View Single Post
  #1  
Old 01-23-2011, 06:08 AM
  promart418's Avatar 
promart418 promart418 is offline
 

Senior Member
  
Join Date: Jan 2009
Location: Leeds, West Yorkshire, England
Posts: 137
 

Default 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,
__________________
x-cart version - 5

Martin Procter

Promart Supplements
Nicola Anne Photography
Reply With Quote