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.