How to display node names of my relation list?

Author Message

Ulrich L.

Thursday 10 March 2005 12:08:42 pm

Hi,
I've written the following code, and I was quite sure it should work. While the nodeID is indicated correctly, the output of node.name remains empty. Why...?

{section name=myloop loop=$node.data_map.artist_instrument.content.relation_list}
INDEX {$myloop:index}
NODE_ID {$myloop:item.node_id}
NAME {$myloop:item.name}
{delimiter}, {/delimiter}
{$myloop:item|attribute(show)}
{/section}

The attribute(show) command displays the following attributes for an example object:
priority string 1
contentobject_id string 89
contentobject_version string 1
node_id string 90
parent_node_id string 78
contentclass_id string 24
contentclass_identifier string 'general_instrument'
identifier boolean false
is_modified boolean false

That's all.
Please help me, I'm already quite desperated...

Ɓukasz Serwatka

Friday 11 March 2005 3:41:55 am

Hi Uli,

This should help

{section var=Relations loop=$node.object.data_map.artist_instrument.content.relation_list}
    {content_view_gui view=text content_object=fetch( content, object, hash( object_id, $Relations.item.contentobject_id, object_version, $Relations.item.contentobject_version ) )}<br />
{/section}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Ulrich L.

Friday 11 March 2005 6:42:29 am

Thanks, Luke. I understand now a fetch command is required anyway.

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:04:07
Script start
Timing: Jan 18 2025 19:04:07
Module start 'layout'
Timing: Jan 18 2025 19:04:07
Module start 'content'
Timing: Jan 18 2025 19:04:08
Module end 'content'
Timing: Jan 18 2025 19:04:08
Script end

Main resources:

Total runtime1.1978 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.1797152.6406
Module start 'layout' 0.00770.0036 741.820339.4766
Module start 'content' 0.01131.1849 781.2969538.6719
Module end 'content' 1.19620.0015 1,319.968812.1250
Script end 1.1978  1,332.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3048160.0002
Check MTime0.00130.1106160.0001
Mysql Total
Database connection0.00160.129810.0016
Mysqli_queries1.144595.5528570.0201
Looping result0.00060.0485550.0000
Template Total1.158096.720.5790
Template load0.00210.176720.0011
Template processing1.155996.500120.5779
Template load and register function0.00020.017410.0002
states
state_id_array0.00100.079310.0010
state_identifier_array0.00200.165720.0010
Override
Cache load0.00170.1421250.0001
Sytem overhead
Fetch class attribute can translate value0.00090.074120.0004
Fetch class attribute name0.00210.178240.0005
XML
Image XML parsing0.00090.072920.0004
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00160.1305180.0001
String conversion0.00000.000840.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs