Forums / Setup & design / display parent node name
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
Wednesday 08 February 2006 11:24:11 am
thanx