How to get the current level in path ?

Author Message

B Pierre

Thursday 16 September 2010 7:14:04 am

Hi,

I begin with Ezpublish and i would like to know with which function or variable can I get the current level of a page in path ?

Thanks.

Gabriel Finkelstein

Thursday 16 September 2010 9:21:48 am

If you're in pagelayout.tpl:

{$module_result.content_info.node_depth}

or

{$module_result.path|count}

http://ez.no/doc/ez_publish/technical_manual/4_x/templates/the_pagelayout/variables_in_pagelayout

If you're in the full or line view of a node:

{$node.depth}

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/objects/ezcontentobjecttreenode

Matthieu Sévère

Friday 17 September 2010 4:41:42 am

You can also you the ezpagedata operator that is bundled with eZ Webin

--
eZ certified developer: http://ez.no/certification/verify/346216

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