Page 1 of 1

Catalog Module | Dislplaying article attributes on a category page

Posted: Wed Nov 15, 2006 3:33 pm
by copernic67
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:

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}
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 ?

Re: Catalog Module | Dislplaying article attributes on a category page

Posted: Wed Nov 15, 2006 4:09 pm
by climberusa
Check out the cataloger module forum here:

http://dev.cmsmadesimple.org/forum/foru ... rum_id=134

I was able to get this to work as well as a few others. Should be fairly straightforward with the recent releases of Cataloger. One quirk I encountered was in the category template I had to capitalize only the item attributes.

Re: Catalog Module | Dislplaying article attributes on a category page

Posted: Thu Nov 16, 2006 3:44 pm
by copernic67
Thanks for the link.

I've moved the discussion to
http://dev.cmsmadesimple.org/forum/foru ... rum_id=134 as it is the right forum for this module.

Cheers