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.

eZ debug

Timing: Jan 18 2025 19:22:50
Script start
Timing: Jan 18 2025 19:22:50
Module start 'layout'
Timing: Jan 18 2025 19:22:50
Module start 'content'
Timing: Jan 18 2025 19:22:51
Module end 'content'
Timing: Jan 18 2025 19:22:51
Script end

Main resources:

Total runtime0.9319 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 589.0234152.6250
Module start 'layout' 0.00920.0036 741.648439.4453
Module start 'content' 0.01270.9176 781.0938564.6875
Module end 'content' 0.93030.0015 1,345.781312.1641
Script end 0.9318  1,357.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3924160.0002
Check MTime0.00150.1558160.0001
Mysql Total
Database connection0.00180.192410.0018
Mysqli_queries0.875593.9565590.0148
Looping result0.00120.1288570.0000
Template Total0.893295.820.4466
Template load0.00250.266820.0012
Template processing0.890795.579820.4453
Template load and register function0.00020.024910.0002
states
state_id_array0.00100.102110.0010
state_identifier_array0.00110.121220.0006
Override
Cache load0.00210.2207270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.068230.0002
Fetch class attribute name0.00110.120240.0003
XML
Image XML parsing0.00080.090930.0003
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00100.1098160.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs