View Single Post
  #1  
Old 07-07-2005, 11:16 AM
 
fearnothing fearnothing is offline
 

Senior Member
  
Join Date: Jun 2005
Location: North East England
Posts: 124
 

Default Tabular Format products.tpl

I have made a copy of products.tpl, stripped out a lot of surplus (for my needs) code and reformatted it into a tabular display.

This template (products_tab.tpl) is called from subcategories.tpl replacing the existing call to products.tpl and works fine. It is particularly effective for cats with a significant number of items for sale.

My question is this - There are some of my categories that don't hold a vast number of products, where the original products.tpl would be more effective.

Is there a smart way of calling the standard or revised templates depending on which cat is selected?

The cat IDs in question are completely random, for example cats 6, 19, 20 and 22 are where I would like the standard template to be called, the rest calling the tabular version.

What would be the syntax for an {if}{else} hard-coded statement?

Thanks in anticipation, FN.
__________________
www.smartchoicemusic.com
Smart Choice Music - Import CD and DVD Specialists
4.6.0
MySQL 5.5.34
PHP 5.4.24
Apache/2.2.26
Multiple homegrown and paid-for mods
Reply With Quote