Root Node

Root Node

Wednesday 16 September 2009 8:43:08 am - 3 replies

Author Message

Marcel Marnet

Wednesday 16 September 2009 11:24:57 pm

Hello Daniel,

what do you mean with "root node"?
Do you mean the highest node of the content-structure? Or the parent node?

The highest node is node 2.

parent-node for example:

{$node.parent.node_id}

with best regards,

Marcel

Xavier Serna

Thursday 17 September 2009 1:37:19 am

This will always return the actual root node for the site:

{def $root_node=fetch( 'content', 'node', hash( 'node_path', '/') )}

hth!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Daniel B

Thursday 17 September 2009 6:23:17 am

thx,

thats ok

Daniel

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.