Object Relation Output Problem

Author Message

David Jones

Wednesday 15 November 2006 4:01:59 am

I've created a class and added an objection relation attribute (called link_node).

This attribute is used to store a link to another node in the site.

How do I output this link?

I have the following which doesn't work,

{set $inner_related_link_node = fetch( 'content', 'related_objects', hash( 'object_id', $related_object.id,'all_relations', true()))}
				  				
{if eq($inner_related_link_node.content_class.identifier, "text_page" )}
	
   {foreach $inner_related_link_node as $inner_related_node}
       {$inner_related_node.data_map.link_node.content}
   {/foreach}

{/if}

Please help


Xavier Dutoit

Wednesday 15 November 2006 8:28:44 am

Not sure I got the problem but try using the standard attribute_view_gui

http://www.sydesy.com

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 19 2025 00:27:47
Script start
Timing: Jan 19 2025 00:27:47
Module start 'layout'
Timing: Jan 19 2025 00:27:47
Module start 'content'
Timing: Jan 19 2025 00:27:48
Module end 'content'
Timing: Jan 19 2025 00:27:48
Script end

Main resources:

Total runtime0.7431 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9141152.6250
Module start 'layout' 0.00570.0025 740.539139.4453
Module start 'content' 0.00820.7335 779.9844518.7969
Module end 'content' 0.74180.0013 1,298.78138.1641
Script end 0.7430  1,306.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4214160.0002
Check MTime0.00140.1841160.0001
Mysql Total
Database connection0.00100.136610.0010
Mysqli_queries0.701794.4236540.0130
Looping result0.00050.0611520.0000
Template Total0.711095.720.3555
Template load0.00180.243420.0009
Template processing0.709295.435620.3546
Template load and register function0.00030.034310.0003
states
state_id_array0.00080.111610.0008
state_identifier_array0.00060.086820.0003
Override
Cache load0.00140.1934110.0001
Sytem overhead
Fetch class attribute can translate value0.00050.063020.0002
Fetch class attribute name0.00080.106530.0003
XML
Image XML parsing0.00060.081020.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00200.2662160.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs