Fetching and filtering across folders

Author Message

Sebastiaan van der Vliet

Sunday 27 July 2003 3:33:48 pm

Hi,

I'm trying to retreive the latest articles from a number of folders, all within the same section, and all named '[projectname] news'. I found the following way in the forums to display the latest items:

{section name=Child loop=fetch('content','tree',hash(parent_node_id,102,class_filter_type,"include",class_filter_array,array(2),limit,5,sort_by,array(array('modified',false()))))}
 <a class="homesubnav" href={concat( "/content/view/full/", $Child:item.node_id,"/" )|ezurl}>{$Child:item.name|wash}</a> <br>
{/section}

Now what I want to do is to retrieve only those articles that are stored in a folder with a name that contains 'news'.

Does anybody know how to do this?

Thanks for your help,
Sebastiaan

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

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 31 2025 04:34:00
Script start
Timing: Jan 31 2025 04:34:00
Module start 'layout'
Timing: Jan 31 2025 04:34:00
Module start 'content'
Timing: Jan 31 2025 04:34:01
Module end 'content'
Timing: Jan 31 2025 04:34:01
Script end

Main resources:

Total runtime1.0561 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.0054 588.2344151.2109
Module start 'layout' 0.00540.0029 739.445336.6484
Module start 'content' 0.00831.0470 776.0938867.2500
Module end 'content' 1.05530.0007 1,643.34388.0000
Script end 1.0561  1,651.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3091160.0002
Check MTime0.00130.1213160.0001
Mysql Total
Database connection0.00080.078010.0008
Mysqli_queries1.005795.2303460.0219
Looping result0.00050.0506440.0000
Template Total1.025797.120.5128
Template load0.00210.201020.0011
Template processing1.023596.917720.5118
Template load and register function0.00140.137110.0014
states
state_id_array0.00100.097210.0010
state_identifier_array0.00090.084220.0004
Override
Cache load0.00170.1643130.0001
Sytem overhead
Fetch class attribute can translate value0.00050.043510.0005
Fetch class attribute name0.00190.180120.0010
XML
Image XML parsing0.00060.060210.0006
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00100.0928170.0001
String conversion0.00000.000740.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
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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs