attribute_filter in fetch

Author Message

SathishKumar Subramanian

Thursday 11 March 2004 10:53:30 pm

hi,
I have a simple question: does fetch support filtering by the checkbox attribute? I have the following code which doesn't work:

section loop=fetch( content, list, hash( parent_node_id, $language_id, attribute_filter, array( array(339, '=', '1') ), sort_by, array( "priority", true () ) ) )

where the Check box attribute id is 339.

I have tried with the code:
section loop=fetch( content, list, hash( parent_node_id, $language_id, attribute_filter, array( array(339, '=', true()) ), sort_by, array( "priority", true () ) ) )

How can I fetch the contents which are only selected by using the checkbox?

if its not supported, is there any other way to do it?

thanks in advance
Sathizh

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 21:08:45
Script start
Timing: Jan 18 2025 21:08:45
Module start 'layout'
Timing: Jan 18 2025 21:08:45
Module start 'content'
Timing: Jan 18 2025 21:08:46
Module end 'content'
Timing: Jan 18 2025 21:08:46
Script end

Main resources:

Total runtime1.3147 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 587.9141152.6250
Module start 'layout' 0.00920.0037 740.539139.4453
Module start 'content' 0.01291.3005 779.9844402.4063
Module end 'content' 1.31340.0013 1,182.39068.3203
Script end 1.3147  1,190.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2358160.0002
Check MTime0.00130.1001160.0001
Mysql Total
Database connection0.00270.208310.0027
Mysqli_queries1.274396.9267460.0277
Looping result0.00050.0355440.0000
Template Total1.274897.020.6374
Template load0.00180.135820.0009
Template processing1.273096.827820.6365
Template load and register function0.00020.011410.0002
states
state_id_array0.00100.076510.0010
state_identifier_array0.00150.117020.0008
Override
Cache load0.00140.1091130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.059010.0008
Fetch class attribute name0.00050.035910.0005
XML
Image XML parsing0.00010.008510.0001
class_abstraction
Instantiating content class attribute0.00000.000210.0000
General
dbfile0.00060.0420100.0001
String conversion0.00000.001040.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs