Catalog Module | Dislplaying article attributes on a category page
Posted: Wed Nov 15, 2006 3:33 pm
Hi all,
I would like to make a category page with the list of my items with the catalog module.
On this list I would like to display some attribute of the items, other than image, link or title.
I've seen on my catalog template page that I can display them with $items[].attrname so I tried this out:
firstname, age and nationality are items attributes but they don't show up. It only display the code inline ($items[numloop].firstname, ...)
Do you have any idea how I can work this out ?
I would like to make a category page with the list of my items with the catalog module.
On this list I would like to display some attribute of the items, other than image, link or title.
I've seen on my catalog template page that I can display them with $items[].attrname so I tried this out:
Code: Select all
{section name=numloop loop=$items}
<tr>
<td><a href="{$items[numloop].link}">{$items[numloop].title}</a></td>
<td>$items[numloop].firstname</td>
<td>$items[numloop].age</td>
<td>$items[numloop].nationality</td>
</tr>
{/section}
Do you have any idea how I can work this out ?