View Single Post
  #4  
Old 10-24-2003, 01:37 PM
  nlindahl's Avatar 
nlindahl nlindahl is offline
 

Member
  
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 28
 

Default

You may want to start by reading the Smarty Docs for a decent idea of what you are capable of doing with a tpl file.

In head.tpl, you'll have the $cat variable available to you. You can use that with if/elseif statements to determine what category you are in and then use the smarty include statement to display the contents of another tpl file or html.

In a case like this all you would have in head.tpl would be a lot of if statements for each category followed by include statements. All output to the browser would be in the various files you include.
__________________
Nick
Running various versions of X-Cart Gold in various locations...
(when I have time, I\'ll make them all current, but by then x-cart 5.x.x will probably be out....)
Reply With Quote