filter

Author Message

Valentina Ferrari

Tuesday 04 May 2004 3:24:32 am

Hi!
I sort the last published news by date using this code:

{let news_list=fetch( content, tree, hash( parent_node_id, 2,
				       limit, 1,
				       attribute_filter, array('or', array( 'article/primo_piano', '=', true()), array( 'article/prodotti', '=', true() ) ),
				       sort_by, array( published, false() ) ) )}

Now, I would like to sort the second and the third news published in another part of this page. So, I think that the wright way is using the same code excluding the last published news, but I don't know the way to filter this.

Any help is welcome!

Greatings,
Valentina

Bjørn Kaarstein

Tuesday 04 May 2004 5:15:48 am

Maybe you could try offset,1 in your fetch. I think it will start at item no.2.

Regards Bjørn

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

Main resources:

Total runtime0.6121 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.0066 588.9141152.6094
Module start 'layout' 0.00670.0045 741.523439.3984
Module start 'content' 0.01120.5993 780.9219459.0391
Module end 'content' 0.61050.0016 1,239.96098.2109
Script end 0.6121  1,248.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5649160.0002
Check MTime0.00140.2333160.0001
Mysql Total
Database connection0.00050.082310.0005
Mysqli_queries0.573493.6708540.0106
Looping result0.00050.0875520.0000
Template Total0.574493.820.2872
Template load0.00210.349620.0011
Template processing0.572293.485020.2861
Template load and register function0.00010.021910.0001
states
state_id_array0.00090.154610.0009
state_identifier_array0.00360.586620.0018
Override
Cache load0.00170.2751130.0001
Sytem overhead
Fetch class attribute can translate value0.00100.159420.0005
Fetch class attribute name0.00080.123020.0004
XML
Image XML parsing0.00030.044120.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00080.1232100.0001
String conversion0.00000.002440.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
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: 6

Time used to render debug report: 0.0001 secs