Cataloger - How Can you Display Grouped Sub Categories and Items on 1 Page
Posted: Sun Feb 07, 2010 5:43 am
I am trying to figure out how to loop through items and pick out Categories from Items so I might display them like so:
Category Title [category image]
-Item
-Item
-Item
Category Title [category image]
-Item
-Item
-Item
I am trying to display this from a Category Template. This is what I am trying to do:
I'm sure there is a better way!
Category Title [category image]
-Item
-Item
-Item
Category Title [category image]
-Item
-Item
-Item
I am trying to display this from a Category Template. This is what I am trying to do:
Code: Select all
<table border="1">
{section name=numloop loop=$items}
{if IS A CATEGORY}
<tr><td>
<img width="150" height="150" vspace="5" border="0" src="{$items[numloop].image}" title="{$items[numloop].title}" alt="{$items[numloop].title}"/> <h1>{$items[numloop].title}</h1>
</td></tr>
{else IF IS AN ITEM}
<tr><td>
{$items[numloop].title}
</td></tr>
{/if}
{/section}
</table>