View Single Post
  #13  
Old 12-06-2002, 01:08 AM
 
MMB MMB is offline
 

Member
  
Join Date: Nov 2002
Location: Lincoln Park MI
Posts: 17
 

Default

I am using this in my subcategories, i need the subcats that have icons to display in colums, and the other subcats with out icons i have them display in a row.

I have this working but when i go over 9 icons it list them in a row like the rest of the subcats.

Can someone please help me with this.

If it helps to see what i am doing here is the link. This is showing my subcats with icons, if you back up one subcat, it list in a row. if I add one more icon to this page it will list it in a row??

http://www.motorsport-depot.com/xcart/customer/home.php?cat=57


here is the code I am using.

Code:
{if $subcategories[cat_num].categoryid eq $icons} <table border=0 width=100% align=center><tr><td> <table border=0 width=100% align=center> {section name=cat_num loop=$subcategories} {if $smarty.section.cat_num.index is div by 3} </tr><tr valign="top"> {/if} <td valign=top> { if %cat_num.first% } {/if} <table border=0 width=125 height=100% cellspacing=0 cellpadding=5 align=center> <tr><td align=center> <a href="home.php?cat={ $subcategories[cat_num].categoryid }">[img]../icon.php?categoryid={$subcategories[cat_num].categoryid}[/img] <font class="TableCenterSubCategoryListTitleBlue">{ $subcategories[cat_num].category|escape }</font></a> </td></tr> { if %cat_num.last% } {/if} </table> </td> {/section} </td></tr></table> </td></tr></table> {else} {section name=cat_num loop=$subcategories} { if %cat_num.first% } <table border=0 cellspacing=5> {/if} <tr><td align=left nowrap width=95%> <font class="TableCenterSubCategoryListTitleBlue">{ $subcategories[cat_num].category|escape }</font> </td> </tr> { if %cat_num.last% } </table> {/if} {/section} {/if}
Reply With Quote