Forums / Install & configuration / Parent Node ID / Comment843
Bruce Morrison
Wednesday 29 January 2003 6:42:30 pm
> How do I get the node ID of the parent node of the current > node? > > I want to achieve the following: > In a full view template of an article, I want to show > "related articles", ie. articles about the same topic. The > "topic" is the parent node of the articles, so I want a list > of all children for the parent node of the current node > (current article). > > fetch(content,list,hash(parent_node_id,[...insert statement> here...]))
$node.parent_node_id
is what you are looking for
bruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish