View Single Post
  #15  
Old 01-23-2011, 04:58 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: If Statement for any page?

If this is for category pages then $cat will work - $cat holds the current category id. But you should put your code in include/categories.php and assign the result to smarty. Then you can use that smarty variable in a template to show the links
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote