Forums / Setup & design / display parent node name

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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