How to fetch more then one classes

Author Message

sangib das

Tuesday 05 September 2006 9:52:19 pm

Hi have created a folder named Network in that folder i have one article class and folder class.

how can i call them?
is it right ?
{let children=fetch( content,
list,
hash( parent_node_id, $node_id ,
class_filter_type, include,
class_filter_array, array( 'articles','folder '),
sort_by, $node.sort_array,

)
)

Łukasz Serwatka

Tuesday 05 September 2006 11:12:38 pm

Yes, this is correct.

{let children=fetch( content, list, hash( parent_node_id, $node_id,
                                                        class_filter_type, include,
                                                        class_filter_array, array( 'articles', 'folder ' ),
                                                        sort_by, $node.sort_array ) ) }

or you can use "list" without class filtering then eZ publish will fetch all objects.

{let children=fetch( content, list, hash( parent_node_id, $node_id,
                                                        sort_by, $node.sort_array ) ) }

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Norman Leutner

Wednesday 06 September 2006 1:03:27 am

You can also take a look into the documentation:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list

Youl'll find some more information and examples about the fetch function there.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.