the incredible problem of the related objects...

Author Message

Daniele Nocentini

Tuesday 21 June 2005 8:05:13 am

:-)

I've searched the forum with no fortune.

I cannot find a clear example to retrieve the attributes of a related object inside a node.

For example from the classic full.tpl:

{default content_object=$node.object content_version=$node.contentobject_version_object node_name=$node.name}
{let related_objects=$content_version.related_contentobject_array}
<p>
<fieldset>
<legend>Contenuti correlati</legend>
<ul class="list">
{section name=ContentObject  loop=$related_objects show=$related_objects}
<li>{content_view_gui view=text_linked content_object=$ContentObject:item}</li>
{/section}
</ul>
</fieldset>
</p>
{/let}
{/default}

I do not need the "content_view_gui view=text_linked" syntax but instead (if possible) a way to retrieve the path of the related file (my related object is a file this time).

A generic method to retrieve a specific attribute from a specific related object could be the non plus ultra...

:-)

Antica Bottega Digitale srl
http://www.abd.it

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 07:17:53
Script start
Timing: Jan 19 2025 07:17:53
Module start 'layout'
Timing: Jan 19 2025 07:17:53
Module start 'content'
Timing: Jan 19 2025 07:17:54
Module end 'content'
Timing: Jan 19 2025 07:17:54
Script end

Main resources:

Total runtime1.5786 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.2891152.6406
Module start 'layout' 0.00490.0027 741.929739.4766
Module start 'content' 0.00751.5697 781.4063467.5938
Module end 'content' 1.57720.0014 1,249.00008.1250
Script end 1.5786  1,257.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.1802160.0002
Check MTime0.00120.0757160.0001
Mysql Total
Database connection0.00080.052610.0008
Mysqli_queries1.542197.6880460.0335
Looping result0.00060.0353440.0000
Template Total1.546898.020.7734
Template load0.00200.125720.0010
Template processing1.544897.859820.7724
Template load and register function0.00010.004810.0001
states
state_id_array0.00090.059210.0009
state_identifier_array0.00210.133120.0011
Override
Cache load0.00160.1021120.0001
Sytem overhead
Fetch class attribute can translate value0.00060.040910.0006
Fetch class attribute name0.00060.038920.0003
XML
Image XML parsing0.00040.023710.0004
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00070.0436160.0000
String conversion0.00000.000440.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs