Treemenu documentation comment

Author Message

Paul Forsyth

Friday 20 February 2004 5:43:41 am

I can't add a comment to the treemenu doc yet, so ill add here:

http://ez.no/ez_publish/documentation/reference/template_operators/miscellaneous/treemenu

The second example has a feature i'd like:


{$menu.last.level}

I have logic in my own menu to do the same thing but if its handled in php all the better. But, this code isn't in trunk yet, nor is it mentioned in the treemenu doc. Will it be soon?

Also, in the second example what does 'last-value' do in the {section} statement:


{section var=menu loop=$:docs last-value}

I assume its a typo.

Paul

Bård Farstad

Friday 20 February 2004 5:58:51 am

last-value is short for last-value=true(). This will enable access to the previous section item via the .last attribute. I will add this to the section doc as well.

--bård

Documentation: http://ez.no/doc

Paul Forsyth

Friday 20 February 2004 7:20:47 am

Ah, pretty neat. Is this a new 3.3 feature? I can change my templates now :)

Thanks

Paul

Bård Farstad

Friday 20 February 2004 7:27:13 am

Yes, this is in 3.3

--bård

Documentation: http://ez.no/doc

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 18 2025 22:19:28
Script start
Timing: Jan 18 2025 22:19:28
Module start 'layout'
Timing: Jan 18 2025 22:19:28
Module start 'content'
Timing: Jan 18 2025 22:19:29
Module end 'content'
Timing: Jan 18 2025 22:19:29
Script end

Main resources:

Total runtime1.2341 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9063152.6250
Module start 'layout' 0.00490.0035 740.531339.4453
Module start 'content' 0.00831.2242 779.9766541.3359
Module end 'content' 1.23260.0015 1,321.312512.1641
Script end 1.2341  1,333.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2634160.0002
Check MTime0.00130.1063160.0001
Mysql Total
Database connection0.00060.046810.0006
Mysqli_queries1.183195.8666600.0197
Looping result0.00060.0525580.0000
Template Total1.200397.320.6002
Template load0.00190.154120.0010
Template processing1.198497.105820.5992
Template load and register function0.00020.016910.0002
states
state_id_array0.00100.084810.0010
state_identifier_array0.00070.052920.0003
Override
Cache load0.00160.1274240.0001
Sytem overhead
Fetch class attribute can translate value0.00050.040520.0002
Fetch class attribute name0.00140.110950.0003
XML
Image XML parsing0.00050.043020.0003
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00080.0621170.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs