Forums / Setup & design / Display Parent Node Name???

Display Parent Node Name???

Author Message

Douglas Johnson

Saturday 12 July 2003 7:13:02 am

What is the statement I use to display the "name" of the parent of the current node the user is in? Example:

CompanyX
--------Products
--------------product1
-------------------specs
-------------------warranty
--------------product2
-------------------specs
-------------------warranty
--------------product3
-------------------specs
-------------------warranty
--------Contacts
--------------Sales
-------------------Jim Orr
-------------------Tim Farris
--------------Mkting
-------------------Wendy Layton
-------------------Bob Waters

If the user is in "product2", how do I display the name of it's parent node "Products"?

Thanks in advance. Doug Johnson

Selmah Maxim

Sunday 13 July 2003 3:57:29 am

try this :
{$node.parent.name}