how to show this sequence with the template code?

Author Message

kevin wei

Saturday 25 December 2004 4:43:15 am

hi,all
1. i have 72 article under one folder (ID=59), i want show it as
article 1 | article 2 | ........article 9
article 10 | .... article 18
....
..... article 72

how can i control loop?

2. i want override the fold_full under one node, it is to say, all node with one parent, can i use this code:

[my_full_folder]
Source=node/view/full.tpl
MatchFile=full/folder.tpl
Subdir=templates
Match[class_identifier]=folder
Match[parent_node_id]=2

thanks!

Ɓukasz Serwatka

Saturday 25 December 2004 6:32:49 am

Hi kevin,

Read about fetch function, sections and {delimiter}
http://ez.no/ez_publish/documentation/reference/data_fetching/content/list
http://ez.no/ez_publish/documentation/reference/template_functions/program_flow/section

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 22:28:52
Script start
Timing: Jan 18 2025 22:28:52
Module start 'layout'
Timing: Jan 18 2025 22:28:52
Module start 'content'
Timing: Jan 18 2025 22:28:53
Module end 'content'
Timing: Jan 18 2025 22:28:53
Script end

Main resources:

Total runtime1.2426 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.0051 588.0625152.6406
Module start 'layout' 0.00510.0025 740.703139.4766
Module start 'content' 0.00761.2334 780.1797527.5000
Module end 'content' 1.24100.0016 1,307.67978.1250
Script end 1.2426  1,315.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2730160.0002
Check MTime0.00140.1131160.0001
Mysql Total
Database connection0.00080.065310.0008
Mysqli_queries1.196896.3089540.0222
Looping result0.00050.0440520.0000
Template Total1.207997.220.6039
Template load0.00240.192220.0012
Template processing1.205497.006720.6027
Template load and register function0.00020.014510.0002
states
state_id_array0.00160.125110.0016
state_identifier_array0.00210.172920.0011
Override
Cache load0.00190.1536190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.056320.0003
Fetch class attribute name0.00120.098330.0004
XML
Image XML parsing0.00080.064720.0004
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00170.1333180.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs