Strange behaviour with section show param

Author Message

Marcus Ilgner

Wednesday 19 November 2003 7:18:39 am

Hi,

I'm trying to write a template that displays the news articles from a folder structure in multiple columns. The maximum number of items in a column is also defined.
So I tried to write a section statement like this:

{section loop=$NEWSITEMS offset=$NEWS_WRITTEN_FOLDER max=$MAX_HEIGHT show=$NEWS_WRITTEN_COLUMN|lt($MAX_HEIGHT)}

But the section is also shown when NEWS_WRITTEN_COLUMN is larger than MAX_HEIGHT. Any ideas why this is? I already tried to display the content of the variables and the result of the lt-operation in each item and their values are ok (e.g. 1 for the articles which should be shown)
And can anyone tell me when it will be possible to access variables from the parent namespace in a set-command?
Atm I have 3 nested sections in one namespace because the innermost loop has to set variables from the root namespace.

Greetings
Marcus

Marcus Ilgner

Tuesday 25 November 2003 2:07:11 am

Ok, I got around this one by specifiying
{section-exclude match=$NEWS_WRITTEN_COLUMN|ge($MAX_HEIGHT)}

During debugging I got the expression that while HTML code in a section for which show==false isn't shown, other eZpublish code got executed nonetheless (set commands).
Section-exclude avoids this.

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 19 2025 00:17:58
Script start
Timing: Jan 19 2025 00:17:58
Module start 'layout'
Timing: Jan 19 2025 00:17:58
Module start 'content'
Timing: Jan 19 2025 00:17:59
Module end 'content'
Timing: Jan 19 2025 00:17:59
Script end

Main resources:

Total runtime0.7126 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0469152.6406
Module start 'layout' 0.00550.0026 740.687539.4766
Module start 'content' 0.00810.7033 780.1641428.9375
Module end 'content' 0.71140.0012 1,209.10168.1250
Script end 0.7126  1,217.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4685160.0002
Check MTime0.00150.2154160.0001
Mysql Total
Database connection0.00080.115610.0008
Mysqli_queries0.672794.3968520.0129
Looping result0.00040.0619500.0000
Template Total0.687896.520.3439
Template load0.00240.331920.0012
Template processing0.685596.185720.3427
Template load and register function0.00020.021310.0002
states
state_id_array0.00060.088710.0006
state_identifier_array0.00060.088820.0003
Override
Cache load0.00200.2795170.0001
Sytem overhead
Fetch class attribute can translate value0.00100.143410.0010
Fetch class attribute name0.00150.211820.0008
XML
Image XML parsing0.00020.022410.0002
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00080.1053100.0001
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
2content/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
5content/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: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs