Forums / Developer / Fetching and filtering across folders

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.