Share » Forums » Setup & design » How to fetch class items in some of...

How to fetch class items in some of folders ?

How to fetch class items in some of folders ?

Sunday 03 February 2008 7:13:49 am - 5 replies

Author Message

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}

Marvix Marx

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

Marvix Marx

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

Marvix Marx

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

Thanks

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu