![]() |
Need to display 2 column subcategory for only 1 category
For my whole site I am displaying the categories in a 3 column format. What I want to do is display 2 column format only for a certain category.
In the subcategories.tpl there is a line that says Quote:
Any help would be appreciated! |
|
Quote:
Thanks for the quick reply! I've been to that post and got and idea but coudn't get anything related to an IF statement for multiple columns for a particular category. If you can find me the code I would be very gratefull! |
{if $cat eq "9" or $cat eq "10" or $cat eq "11" or $cat eq "12"}
|
Quote:
I tried but didn't work. Quote:
|
OK, not a programmer by any means, but you are checking to see if the catnum is a ultiple of 3, and then checking to see if it is a multiple of 2....
Code:
{ if %cat_num.index% is div by 3} this line is checking to see if it is divisiable by 3 in order to start a new row, this creates a 3 column table... what you want to do is check against the cat num, and if true create a 2 column table, so I would do something like... Code:
{if $cat eq "1372"} it may not be correct, but hth |
Thanks - that worked perfect!
Jeff |
All times are GMT -8. The time now is 08:43 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.