What count of the path exactly mean?

Author Message

Guilherme Longo

Tuesday 04 September 2007 4:22:06 am

When the system run this line:

$module_result.path|count

what exactly happen?

I read that make a count for the path of $module_result but i did'nt understood what this count means.

Someone could help me?

thank!

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

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