Forums / General / How to fetch more then one classes

"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".

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 Exponential 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