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.

eZ debug

Timing: Jan 18 2025 19:04:43
Script start
Timing: Jan 18 2025 19:04:43
Module start 'layout'
Timing: Jan 18 2025 19:04:43
Module start 'content'
Timing: Jan 18 2025 19:04:44
Module end 'content'
Timing: Jan 18 2025 19:04:44
Script end

Main resources:

Total runtime0.7250 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 591.0938152.6250
Module start 'layout' 0.00660.0030 743.718839.4453
Module start 'content' 0.00960.7139 783.1641582.2656
Module end 'content' 0.72340.0015 1,365.429712.1563
Script end 0.7250  1,377.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4444160.0002
Check MTime0.00130.1771160.0001
Mysql Total
Database connection0.00110.147910.0011
Mysqli_queries0.673192.8424590.0114
Looping result0.00080.1064570.0000
Template Total0.690995.320.3454
Template load0.00220.302520.0011
Template processing0.688794.992120.3443
Template load and register function0.00010.019710.0001
states
state_id_array0.00110.147210.0011
state_identifier_array0.00120.170820.0006
Override
Cache load0.00190.2568250.0001
Sytem overhead
Fetch class attribute can translate value0.00070.098230.0002
Fetch class attribute name0.00100.132050.0002
XML
Image XML parsing0.00140.190930.0005
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00160.2194250.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs