Forums / Developer / attribute_filter in fetch

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