Forums / Setup & design / How to get to the node above the parent

"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".

How to get to the node above the parent

Author Message

Felix Laate

Wednesday 11 June 2003 5:59:49 am

Hi all!

I need to get a list of the articles in the node above the parent_node.

i.e. if this is the case:

people
- george
- peter

If I go to george, I need to be able to get a list of all the content of people.

I've tried this one:

loop=fetch(content,list,hash(parent_node_id,$DesignKeys:used.node,class_filter_type,include,class_filter_array,array(2))) show=eq($DesignKeys:used.viewmode,'full')}

:-) Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Jan Borsodi

Wednesday 11 June 2003 7:04:34 am

If you're inside a node template (node/view/full.tpl) you can do
loop=fetch(content,list,hash(parent_node_id,$node.parent_node_id,class_filter_type,include,class_filter_array,array(2)))

The $node variable is the current node and the attribute parent_node_id returns the id of the parent node.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq