section-exclude / loop / max problem

Author Message

Vivienne van Velzen

Wednesday 22 October 2003 3:22:10 am

Hi,

I'm trying to show a maximum of 6 news articles that have their (self-defined) 'visible' flag on. This is my code:

{section name=News max=6 loop=fetch(...)}
{section-exclude match=$:item.data_map.visible.content|not()}
{$:item.name}<br>
{/section}

From the documentation I gathered that the iteration count will not be advanced if the loop item is discarded. In my output however, this is not the case. The non-visible news-items are still counted, so a wrong number of news-items is shown.
Can anyone help?
TIA,

Vivienne

andreas spahr

Thursday 23 October 2003 3:38:00 am

Hi,
can you explain me, where you get the count value from?

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 04:38:43
Script start
Timing: Jan 19 2025 04:38:43
Module start 'layout'
Timing: Jan 19 2025 04:38:43
Module start 'content'
Timing: Jan 19 2025 04:38:44
Module end 'content'
Timing: Jan 19 2025 04:38:44
Script end

Main resources:

Total runtime1.3102 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.1797152.6250
Module start 'layout' 0.00670.0040 741.804739.4453
Module start 'content' 0.01071.2980 781.2500459.1016
Module end 'content' 1.30870.0014 1,240.35168.1563
Script end 1.3101  1,248.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2617160.0002
Check MTime0.00140.1033160.0001
Mysql Total
Database connection0.00100.074710.0010
Mysqli_queries1.269596.8934540.0235
Looping result0.00060.0430520.0000
Template Total1.273197.220.6366
Template load0.00250.188920.0012
Template processing1.270696.981720.6353
Template load and register function0.00020.011710.0002
states
state_id_array0.00250.191210.0025
state_identifier_array0.00170.128620.0008
Override
Cache load0.00200.1549160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.064620.0004
Fetch class attribute name0.00100.076620.0005
XML
Image XML parsing0.00020.018220.0001
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00070.0540100.0001
String conversion0.00000.001040.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs