question about section & delimiter !

Author Message

Selmah Maxim

Monday 05 May 2003 8:16:42 am

hi ..

why delimiter want work in section tag with term ?

________________ The Code _________________

{let category=fetch('content',list,hash(parent_node_id,$node.node_id))}

<table border='0' bgcolor=#cccccc celspace=1>
<tr>
{section name=Main loop=$category }
{section show=eq($Main:item.data_map.category_state.data_int,"1")}
<td bgcolor=#efefef>
{$Main:item.node_id}
{node_view_gui view=line content_node=$Main:item}
<br>{$Main:item.data_map.category_state.data_int}</<br>
{let Sub_List=fetch(content,list,hash(parent_node_id,$Main:item.node_id,sort_by,array(array(priority))))}
{section name=Subs loop=$Main:Sub_List }
<a class="small" href={concat("/content/view/sub/",$Main:Subs:item.node_id,"/")|ezurl}>{$Main:Subs:item.name|wash}</a>
{/section}
{/let}
</td>
{delimiter modulo=2}
</tr>
<tr>
{/delimiter}
{/section}
{/section}
</tr>
</table>
{/let}
________________________

without ($Main:item.data_map.category_state.data_int,"1")}
will list the categories in to <tr> something like this :
+--------------------+--------------------+
| | |
+--------------------+--------------------+
| | |
+--------------------+--------------------+

but want work !

whay, any idea ?

thx for help :)

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 04:10:26
Script start
Timing: Jan 18 2025 04:10:26
Module start 'layout'
Timing: Jan 18 2025 04:10:26
Module start 'content'
Timing: Jan 18 2025 04:10:27
Module end 'content'
Timing: Jan 18 2025 04:10:27
Script end

Main resources:

Total runtime0.6446 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.0064 587.9375152.6250
Module start 'layout' 0.00650.0035 740.562539.4453
Module start 'content' 0.01000.6332 780.0078409.0000
Module end 'content' 0.64320.0014 1,189.00788.1563
Script end 0.6446  1,197.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5145160.0002
Check MTime0.00140.2151160.0001
Mysql Total
Database connection0.00150.232410.0015
Mysqli_queries0.604293.7267460.0131
Looping result0.00040.0637440.0000
Template Total0.614295.320.3071
Template load0.00210.332920.0011
Template processing0.612194.951920.3060
Template load and register function0.00020.037710.0002
states
state_id_array0.00080.124310.0008
state_identifier_array0.00100.159320.0005
Override
Cache load0.00180.2826410.0000
Sytem overhead
Fetch class attribute can translate value0.00060.098610.0006
Fetch class attribute name0.00080.121810.0008
XML
Image XML parsing0.00010.014410.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00050.0739100.0000
String conversion0.00000.001340.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs