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.