Attribute Filter

Author Message

Mahesh Arvind

Monday 29 March 2004 8:10:57 am

Hi,

I am using attribute filter to filter out articles which are of language "English" and based on the type of article, which is an Enum - option. The code I am using is

{let cont=fetch('content','list',
hash( parent_node_id,"133"),
class_filter_type, "include",
class_filter_array, array(17),
attribute_filter,array( and,array(196, '=', $node.data_map.language.content),(161,'=','Prayer Request Submission')))}

However, I do not get anything published. $node.data_map.language.content is the language of the article and Prayer Request Submission is the type. So can anybody help me out how to filter the articles based on these two ?

Thanks & Regards
Mahesh

Thanks & Regards
Mahesh

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 19 2025 08:50:07
Script start
Timing: Jan 19 2025 08:50:07
Module start 'layout'
Timing: Jan 19 2025 08:50:07
Module start 'content'
Timing: Jan 19 2025 08:50:07
Module end 'content'
Timing: Jan 19 2025 08:50:07
Script end

Main resources:

Total runtime0.7070 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.0050 589.0391152.6094
Module start 'layout' 0.00500.0023 741.648439.4141
Module start 'content' 0.00720.6986 781.0625468.0000
Module end 'content' 0.70580.0012 1,249.06258.3438
Script end 0.7070  1,257.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4339160.0002
Check MTime0.00120.1762160.0001
Mysql Total
Database connection0.00080.116410.0008
Mysqli_queries0.669594.6935460.0146
Looping result0.00040.0583440.0000
Template Total0.648291.720.3241
Template load0.00220.317720.0011
Template processing0.646091.368620.3230
Template load and register function0.00010.012010.0001
states
state_id_array0.03334.704010.0333
state_identifier_array0.00100.136120.0005
Override
Cache load0.00180.2595140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.075510.0005
Fetch class attribute name0.00060.080720.0003
XML
Image XML parsing0.00050.065510.0005
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00080.1154160.0001
String conversion0.00000.000740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs