Forums / Suggestions / logical operators and attribute filter array

logical operators and attribute filter array

Author Message

Mads Ovesen

Monday 31 October 2005 3:00:19 am

Would it possible to have more than one logical operator in the attribute filter array? For example:

attribute_filter,array('and', array('or',
                 array(197, '<' , currentdate()),
                 array(197, '=' , 0)),
                 array('or',
                 array(198, '>' , currentdate()),
                 array(198, '=' , 0)))

/m

Gurudutt Verma

Tuesday 15 November 2005 2:25:15 am

Hi

I haven't tested this

but this possible.

Kristof Coomans

Wednesday 16 November 2005 12:31:57 am

After a quick look at the code in <i>eZContentObjectTreeNode::createAttributeFilterSQLStrings</i>, I don't think this is possible at the moment.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Fabricio Guerrero

Wednesday 08 February 2006 3:27:40 am

Hi,

Has anybody any fixes to this??

Currently i have to filter 4 attributes... seems to only be able to filter two attributes if i add more fetch brings NOTHING back.. :(..

any ideas how to filter more that 2?

Thanks,
Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...