section-include and section-exclude??

Author Message

Peter Bailey

Tuesday 01 April 2003 8:49:20 am

Hey all

I'm modifying "/node/view/full.tpl" to make my own view mode. It grabs all the children with this let command

{let children=fetch('content','list',hash(parent_node_id,$node.node_id,sort_by,$node.sort_array,limit,$page_limit,offset,$view_parameters.offset))}

And then loops through the $children displaying them. however, I'd like a different template piece used for the first five than for the rest. I've tried using section-include and and section-exlude to no avail.

I can provide more detail if you need it, but what I'm trying to do here is list the first five articles in a summary-like view, and then insert a heading "Other Articles in this section" and below that, a line-item style listing of the remaning articles. Much like you would see at sitepoint.com or devarticles.com

Kai Duebbert

Wednesday 02 April 2003 1:04:01 am

Have a look at http://ez.no/sdk/tutorials/view/templateissues

A similiar case is explained there (summary: use the "max" and "offset" parameter of "section").

Peter Bailey

Wednesday 02 April 2003 6:18:39 am

Thanks!

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 05:07:54
Script start
Timing: Jan 18 2025 05:07:54
Module start 'layout'
Timing: Jan 18 2025 05:07:54
Module start 'content'
Timing: Jan 18 2025 05:07:55
Module end 'content'
Timing: Jan 18 2025 05:07:55
Script end

Main resources:

Total runtime1.1451 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.0703152.6250
Module start 'layout' 0.00600.0044 741.695339.4453
Module start 'content' 0.01041.1334 781.1406465.2578
Module end 'content' 1.14380.0014 1,246.39848.1563
Script end 1.1451  1,254.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2916160.0002
Check MTime0.00130.1173160.0001
Mysql Total
Database connection0.00080.070710.0008
Mysqli_queries1.104996.4846570.0194
Looping result0.00060.0506550.0000
Template Total1.111697.120.5558
Template load0.00190.167920.0010
Template processing1.109796.903820.5548
Template load and register function0.00010.012810.0001
states
state_id_array0.00190.166010.0019
state_identifier_array0.00080.073820.0004
Override
Cache load0.00160.1357130.0001
Sytem overhead
Fetch class attribute can translate value0.00110.097720.0006
Fetch class attribute name0.00090.079530.0003
XML
Image XML parsing0.00020.021720.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00070.0636100.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
3content/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
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: 4

Time used to render debug report: 0.0001 secs