Share » Forums » Setup & design » Find topmost node id after node 2

Find topmost node id after node 2

Find topmost node id after node 2

Wednesday 19 April 2006 3:49:07 am - 4 replies

Author Message

Präßler Sven

Wednesday 19 April 2006 5:44:49 am

To get the main top Node ID after the ezpublish root node you can use

{def $topID = $node.path_array.2}

Børge Warvik

Wednesday 19 April 2006 5:48:24 am

Thanks!

So in this case the $node.path_array for node 8 will be 2, 4, 6, 8?

Präßler Sven

Wednesday 19 April 2006 5:51:51 am

In this case it will be 1,2,4,6,8

Børge Warvik

Wednesday 19 April 2006 6:01:12 am

I see!

Great, thanks!
Børge

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

36 542 Users on board!

Forums menu