Share » Forums » Setup & design » What count of the path exactly mean?

What count of the path exactly mean?

What count of the path exactly mean?

Tuesday 04 September 2007 4:22:06 am - 1 reply

Author Message

Bruce Morrison

Tuesday 04 September 2007 4:58:51 am

Hi Guilherme

$module_result.path contains "An array of hashes containing information about the path which leads to the page that is currently being viewed."
http://ez.no/doc/ez_publish/technical_manual/3_9/templates/the_pagelayout/variables_in_pagelayout#module_result

You can view the content with the following:

{$module_result.path|attribute(show,2)}

Adding the "|count" on the end will return the number of items in the array.
http://ez.no/doc/ez_publish/technical_manual/3_9/reference/template_operators/variable_and_type_handling/count

HTH

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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

36 542 Users on board!

Forums menu