Fetching only polls from the folder

Author Message

John Smith

Friday 11 March 2005 12:47:19 am

hi there,

Can anybody please tell me how to only fetch poll's from the folder in which there are many images, articles, polls and links.

Regards

Ɓukasz Serwatka

Friday 11 March 2005 12:50:39 am

poll=fetch( 'content', 'list', hash( parent_node_id, $node.node_id,
                                                    class_filter_type, include,
                                                    class_filter_array, array( 'poll' ),                                     
                                                    sort_by, $node.sort_array ) )

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

John Smith

Friday 11 March 2005 12:52:57 am

thanks mate

My fault was 'Poll', it should be 'poll'.
sorted

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 16:09:12
Script start
Timing: Jan 18 2025 16:09:12
Module start 'layout'
Timing: Jan 18 2025 16:09:12
Module start 'content'
Timing: Jan 18 2025 16:09:13
Module end 'content'
Timing: Jan 18 2025 16:09:13
Script end

Main resources:

Total runtime1.0556 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.0313152.6406
Module start 'layout' 0.00800.0035 740.671939.4609
Module start 'content' 0.01151.0426 780.1328533.4766
Module end 'content' 1.05410.0014 1,313.60948.1563
Script end 1.0555  1,321.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3238160.0002
Check MTime0.00130.1266160.0001
Mysql Total
Database connection0.00080.076410.0008
Mysqli_queries1.009695.6457570.0177
Looping result0.00060.0537550.0000
Template Total1.018196.420.5090
Template load0.00220.207920.0011
Template processing1.015996.238920.5079
Template load and register function0.00020.014210.0002
states
state_id_array0.00100.095610.0010
state_identifier_array0.00160.149720.0008
Override
Cache load0.00180.1714130.0001
Sytem overhead
Fetch class attribute can translate value0.00140.129720.0007
Fetch class attribute name0.00100.094740.0002
XML
Image XML parsing0.00070.063220.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00090.0823180.0000
String conversion0.00000.001140.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs