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.

eZ debug

Timing: Jan 20 2025 04:07:15
Script start
Timing: Jan 20 2025 04:07:15
Module start 'layout'
Timing: Jan 20 2025 04:07:15
Module start 'content'
Timing: Jan 20 2025 04:07:15
Module end 'content'
Timing: Jan 20 2025 04:07:15
Script end

Main resources:

Total runtime0.0185 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.2734152.6406
Module start 'layout' 0.00720.0029 741.914139.4609
Module start 'content' 0.01010.0063 781.375089.4453
Module end 'content' 0.01640.0020 870.820330.3047
Script end 0.0184  901.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003116.9387140.0002
Check MTime0.00136.8850140.0001
Mysql Total
Database connection0.00147.354310.0014
Mysqli_queries0.003016.377930.0010
Looping result0.00000.076110.0000
Template Total0.00168.810.0016
Template load0.00094.649810.0009
Template processing0.00084.098010.0008
Override
Cache load0.00063.012610.0006
General
dbfile0.00031.599880.0000
String conversion0.00000.049040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs