Share » Forums » Extensions » eZ Find » search, filter multiple fields and OR...

search, filter multiple fields and OR condition

search, filter multiple fields and OR condition

Friday 28 August 2009 10:35:17 am - 2 replies

Modified on Friday 28 August 2009 12:47:53 pm by Saad Tazi

Author Message

Ivo Lukac

Tuesday 01 September 2009 5:50:36 am

I head similar problem and reported it:
http://issues.ez.no/IssueView.php?Id=15186&activeItem=2

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Max Keil

Tuesday 08 September 2009 10:41:19 am

The same problem as yours,

after 10 minutes debugging I found a dirty solution:

'filter', array( array( 'or',
                           array( 'and',
                                    'class_identifier:auktion',
                                    'auktion/beendet:0'
                                   ),
                          array( 'and',
                                   'class_identifier:sofortkauf',
                                   'sofortkauf/beendet:0'
                                  )
                             )
                ),

the whole 'OR' condition should be in a separate array because of the language code!

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu