eZ Community » Forums » Setup & design » How to get to the node above the parent
expandshrink

How to get to the node above the parent

How to get to the node above the parent

Wednesday 11 June 2003 2:59:49 pm - 1 reply

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')}

happy.gif Emoticon Felix

Wednesday 11 June 2003 4:04:34 pm

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.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from