Pål J Didriksen
|
Tuesday 20 July 2004 5:22:59 am
I'm trying to make a fetch, filtering on class ID and attribute, where the attribute is boolean datatype, but I can't make it work.
{let user_list=fetch( content, tree, hash( parent_node_id, $node.node_id,
depth, 3,
sort_by, $node.sort_array,
class_filter_type, include,
class_filter_array, array( 4 )
attribute_filter, array(386,'=',1)))}
Any ideas how to solve this?
|
Silke Fox
|
Tuesday 20 July 2004 6:32:16 am
Leave out class_filter_type and class_filter_array - these are implicit with attribute_filter. See Bruce Morrison's answer here: http://ez.no/community/forum/developer/using_attribute_filter_on_related_object_attributes
And it should be attribute_filter, array(array(386,'=',1))))}
The outer array is neccessary for and/ or relation of several attributes (I guess). BTW, instead of contentclass attribute id you can also use '<class_identifier>/<attribute_identifier>' (e.g. 'article/published').
hth Silke
|