Retrieving the node_id always at the same depth ?

Author Message

Nabil Alimi

Tuesday 28 June 2005 1:52:50 am

Hi,

Is there a way to always fetch at the same depth ?

I mean, I've got a site that looks like this :

- root

-- sub folder

--- subsub folder

---- subsubsub folder

Wherever I am, I'd like to retrieve the level 2 node. I've been thinking of making :

{section show=$the_node.depth|ne(2)}
    {set scope=global $the_node=$the_node.parent_node_id}
{/section}

But can I make a loop if there's no array ?
I haven't seen any "while" operator in EzPublish...

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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