Display Parent's Attributes, How to? Really need help!

Author Message

Jorge estévez

Sunday 17 October 2004 12:41:33 pm

I have this structure:

Parent node (attr: name, image etc.)
| |
| child
|child

Within one of the childs I would like to display the parent's name or image.

How can I do that?

And if I would like to diplay the same attr of the parent's parent and so on? How can I do it?

Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Tuesday 19 October 2004 12:55:56 pm

Can someone help with this please!

thanks!

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Alex Jones

Tuesday 19 October 2004 2:11:40 pm

You can gather any information about the parent of the current node by setting up a fetch using <i>$DesignKeys:used.parent_node</i> for the node ID. Also, a good tip for learning what information is available to you, is to use <i>|attribute(show)</i> which will display all of the attributes assigned to an object. For example, to see all of the attributes assigned to the current node, you can use

{$node|attribute(show)}

<b>How to find the parent and grandparent of an object:</b> http://ez.no/ez_publish/documentation/incoming/how_to_find_the_parent_and_grandparent_of_an_object

Does this help?

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

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

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 04:30:46
Script start
Timing: Jan 19 2025 04:30:46
Module start 'layout'
Timing: Jan 19 2025 04:30:46
Module start 'content'
Timing: Jan 19 2025 04:30:47
Module end 'content'
Timing: Jan 19 2025 04:30:47
Script end

Main resources:

Total runtime1.5138 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.0099 589.3984152.6563
Module start 'layout' 0.00990.0044 742.054739.4922
Module start 'content' 0.01431.4975 781.5469530.9766
Module end 'content' 1.51180.0020 1,312.523412.1250
Script end 1.5138  1,324.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2484160.0002
Check MTime0.00140.0926160.0001
Mysql Total
Database connection0.00370.242010.0037
Mysqli_queries1.456196.1882570.0255
Looping result0.00070.0431550.0000
Template Total1.471897.220.7359
Template load0.00220.145420.0011
Template processing1.469697.075520.7348
Template load and register function0.00030.019810.0003
states
state_id_array0.00080.053110.0008
state_identifier_array0.00220.148220.0011
Override
Cache load0.00170.1140210.0001
Sytem overhead
Fetch class attribute can translate value0.00120.077020.0006
Fetch class attribute name0.00210.138040.0005
XML
Image XML parsing0.00070.045520.0003
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00110.0720160.0001
String conversion0.00000.000640.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/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: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs