bug or feature ?? -- eztemplate: operators do not process section indices

Author Message

Volker Lenz

Wednesday 05 February 2003 1:26:05 pm

I tried this:

{section name=Path loop=$module_result.path}
{section-exclude match=$Path:index|eq(0)}
{section-exclude match=$Path:item.text|eq('Hidden_Folder_A')}
{section-exclude match=$Path:item.text|eq('Hidden_Folder_B')}
... some template-html printing the path ...
{/section}

Everything works as expected, as long as there is not the critical line 2

{section-exclude match=$Path:index|eq(0)}

which crashes the template-parser without debug infos.

No better outcome if I try with the section's default "number"-variable instead of using "index" in order to prevent the first item in loop-array from being processed in my template:

{section-exclude match=$Path:number|eq(1)}

So I ask myself if default $NameSpace-variables other than $item:xxx are allowed as valid input for template operators at all?

Can anybody comment on this ?

Thanks

Volker

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 30 2025 19:42:46
Script start
Timing: Jan 30 2025 19:42:46
Module start 'layout'
Timing: Jan 30 2025 19:42:46
Module start 'content'
Timing: Jan 30 2025 19:42:47
Module end 'content'
Timing: Jan 30 2025 19:42:47
Script end

Main resources:

Total runtime1.1791 sec
Peak memory usage8,192.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.6172151.2734
Module start 'layout' 0.00520.0040 739.8906220.7656
Module start 'content' 0.00921.1691 960.65634,346.6563
Module end 'content' 1.17830.0008 5,307.31257.7500
Script end 1.1791  5,315.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3066160.0002
Check MTime0.00140.1155160.0001
Mysql Total
Database connection0.00080.070110.0008
Mysqli_queries1.096492.9895460.0238
Looping result0.00040.0364440.0000
Template Total1.125895.520.5629
Template load0.00220.188220.0011
Template processing1.123695.292720.5618
Template load and register function0.00160.136010.0016
states
state_id_array0.00120.100710.0012
state_identifier_array0.00220.184820.0011
Override
Cache load0.00190.1575200.0001
Sytem overhead
Fetch class attribute can translate value0.00180.149910.0018
Fetch class attribute name0.00180.155820.0009
XML
Image XML parsing0.00270.229810.0027
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00360.3076160.0002
String conversion0.00000.000840.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs