Author Topic

Jan Borsodi

Wednesday 05 May 2004 4:50:13 am

Comment40600

You should be able to do it by using the attribute_filter and matching on 'section',
try the the following fetch

fetch( content, tree,
       hash( parent_node_id, $node.parent_node_id,
             sort_by, array( published, false() ),
	     attribute_filter, array( 'and', array( 'section', '=', $node.object.section_id ) ),
             class_filter_type, include,
	     class_filter_array, array( 'article' ) )  )

This uses <i>tree</i> fetching to fetch all objects under that node and not just the ones as direct chidren.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq