Problems with two {run-once}-functions in a section-loop

Author Message

Jonny Bergkvist

Friday 20 June 2003 12:43:22 am

I have trouble using the {run-once}-function. Only the first {run-once} is beeing executed. I this how it should be, or is it maybe a bug?

I have the following template code:
{section name=Child loop=fetch('content','list',hash(parent_node_id,$node.node_id,
sort_by,$node.sort_array,
class_filter_type,include,
class_filter_array,array(1)))}

{run-once}
<tr>
<td colspan="2">
<h2>{$node.data_map.description.content.output.output_text}</h2>
</td>
</tr>
<tr>
<td width="50%">
{/run-once}

{node_view_gui view=line content_node=$Child:item}

{switch name=Sw2 match=$Child:number}
{case in=array(2,4,6,8,10,12,14,16,18,20)}
</td></tr><tr><td width="50%">
{/case}
{case}
</td><td width="50%">
{/case}
{/switch}

{run-once}
</td></tr>
{/run-once}

{/section}

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 18:14:24
Script start
Timing: Jan 18 2025 18:14:24
Module start 'layout'
Timing: Jan 18 2025 18:14:24
Module start 'content'
Timing: Jan 18 2025 18:14:25
Module end 'content'
Timing: Jan 18 2025 18:14:25
Script end

Main resources:

Total runtime1.3072 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1563152.6563
Module start 'layout' 0.00480.0028 740.812539.4922
Module start 'content' 0.00761.2981 780.3047445.3438
Module end 'content' 1.30570.0015 1,225.64848.1094
Script end 1.3072  1,233.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2474160.0002
Check MTime0.00130.1006160.0001
Mysql Total
Database connection0.00060.048610.0006
Mysqli_queries1.264996.7653460.0275
Looping result0.00040.0343440.0000
Template Total1.277297.720.6386
Template load0.00230.177020.0012
Template processing1.274897.523220.6374
Template load and register function0.00010.007310.0001
states
state_id_array0.00090.065510.0009
state_identifier_array0.00220.168920.0011
Override
Cache load0.00190.1424330.0001
Sytem overhead
Fetch class attribute can translate value0.00070.056510.0007
Fetch class attribute name0.00080.059220.0004
XML
Image XML parsing0.00060.046710.0006
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00120.0883160.0001
String conversion0.00000.000640.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs