Forums / Setup & design / How to fetch class items in some of folders ?
Marvix Marx
Sunday 03 February 2008 7:13:49 am
Hi ..
I need to fetch Article class with path 0 in some of the folders ?
Thx !
Lukasz Klejnberg
Sunday 03 February 2008 9:04:42 am
Hi
and try this:
{def $list_items=fetch( 'content','list', hash( 'parent_node_id',$module_result.path[0].node_id,'class_filter_type', 'include','class_filter_array',array('article') ) )} {foreach $list_items as $item} {attribute_view_gui attribute=$item.object.data_map.title} {/foreach} {undef $list_items}
Sunday 03 February 2008 9:11:17 pm
Thank a lot, but this will not work...
I have about 23 folder, I want to fetch article class from 14 folder just ... not from all !
Thanks
Ćukasz Serwatka
Sunday 03 February 2008 11:23:20 pm
Then use 'parent_node_id', array( 1, 2, 3, ..., 13 )
In array put node IDs valid for your folders.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Monday 04 February 2008 7:47:16 am
Thx ... but why this not working ?
{def $mainfolder=array(1,2,3,4,5,9)} ... 'parent_node_id', $mainfolder
Monday 04 February 2008 9:23:00 pm
nice .. but why this does`t work ..
{def $maniFolders=array(1,2,3,4,5,6,7)} . . ... 'parent_node_id', $maniFolders