display parent node name

Author Message

risto CMS user

Wednesday 08 February 2006 3:17:58 am

Im in need of displaying the parent node name of an article. would someone mind showing me how?

Christian Johansen

Wednesday 08 February 2006 3:42:05 am

You'll find what you need in the documentation: http://ez.no/doc/ez_publish/technical_manual/3_6/reference/objects/ezcontentobject

You can use main_parent_node_id to fetch the parent node. I don't know if it's possible to access the parent node without fetching it first, but I don't think so.

Thomas Nunninger

Wednesday 08 February 2006 4:28:18 am

Hi,

have you tried $node.parent? The $node variable should provide a parent property which returns the parent node object (not only an id). Look at

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/objects/ezcontentobjecttreenode

Have a nice day

Thomas

risto CMS user

Wednesday 08 February 2006 11:24:11 am

thanx

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.