Display Node Contents...

Author Message

Douglas Johnson

Wednesday 03 September 2003 2:15:24 pm

Structure:
Folder1
------article1
------article2
------article3
------article4
------article5
------article6
------article7

I need to display ALL of the contents of every article in Folder1 in an article. I can display the first item in each article but nothing else. I am using a fetch and section loop then using {$Promo:item.name}, {$Promo:item.desc}, {$Promo:item.price} to display each item. But like I said, this only works for the Item "Name" nothing else. What statement can I use to display all items for every article in Folder1 + images? I have tried attribute_view_gui and it doesn't work. Help please.

Alex Jones

Wednesday 03 September 2003 2:55:58 pm

Perhaps try something along the lines of: {attribute_view_gui attribute=$:item.data_map.desc}
{attribute_view_gui attribute=$:item.data_map.price}

Nothe 'data_map' in there. If nothing else, take a look at the attributes to see the structure available to you:
{$Promo:item|attribute()} or {$Promo:item|attribute(show)}

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bjørn Kaarstein

Thursday 04 September 2003 12:41:23 am

Hi.

If you're displaying an XML-field, you can try this:

{$Promo:item.data_map.desc.content.output.output_text}

Displaying a text line will go like this: {$Promo:item.data_map.text_line.content}

{attribute_view_gui attribute=$Promo:item.data_map.price} should work, like Alex described. The system will then use a standard template (price.tpl or something like that) for displaying the price.

Regards Bjørn

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.