Forums / Developer / attribute_filter : 'and' not work !!

attribute_filter : 'and' not work !!

Author Message

Abdelkader RHOUATI

Wednesday 20 February 2008 3:37:57 am

hi,

i try to do a fetch width attribute_filter :

'attribute_filter',array('and', array('parent_node_id','=',$secteur_recherche), array('pratique/applicable_projet','=','1'))

i dont have my response!!

have you an idea what it's wrong?

tks

Abdelkader.

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

André R.

Wednesday 20 February 2008 4:25:56 am

'parent_node_id' is not a attribute filter:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Abdelkader RHOUATI

Wednesday 20 February 2008 6:20:15 am

hi,


I forgot to mention that I have a tree fetch:

fetch('content','tree', hash('parent_node_id',$dossier_secteur, 'attribute_filter', array( 'and',array('parent_node_id','=',$secteur_recherche), array('pratique/applicable_projet','=','1')))


<b>and i test the two criterias separated (parent_node_id and pratique/applicable) ; it work !!!</b>

but when i use them Together, with 'and' , the fetch return nothings (i'm shure that many objects must be returned).

tks

Abdelkader.

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery