Share » Forums » Developer » How to get the current level in path ?

How to get the current level in path ?

How to get the current level in path ?

Thursday 16 September 2010 7:14:04 am - 2 replies

Author Message

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

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

36 542 Users on board!

Forums menu