View Single Post
  #1  
Old 09-18-2002, 11:04 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default Making a category list using the category icons.

This was coded in 2.3.4, unless the variable names have changed this should work in 3.1.3 I hope

Code:
<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=0><TR> {section name=cat_num loop=$categories} {if $smarty.section.cat_num.index is div by 3} </TR><TR> {/if} <TD>[img]../icon.php?categoryid={$categories[cat_num].categoryid}[/img]</TD> {/section} </TR></TABLE>

Change the "is div" by 3 to change up the columns.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote