View Single Post
  #3  
Old 03-27-2010, 02:14 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: How Can I do this. . .

You should be able to do it using smarty or php.

In smarty:
Your subcategories are in this array: $subcategories
number of items in the array: {$subcategories|@count}
You can set smarty variables to determine the subcats per column:
{assign var="subcats_count" value=$subcategories|@count}
{assign var="subcats_per_section" value=$subcats_count/4}

You can create loops in smarty using the variables to get the desired outcome. You can set a variable inside your loop to count where you are, and when you reach the desired subcategory count, you can start a new unordered list.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote