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)
|