Selection attribute_filter with content search

Author Message

Jeremy B.

Tuesday 25 August 2009 7:31:53 am

Hi there,

I'm trying to do an attribute_filter on a 'selection' attribute type when fetching with 'content' 'search'. But the system is always returning all items, without filtering their values.

I saw in the doc that it's doable, and also there :
http://ez.no/developer/forum/general/attribute_filter_on_fetch_content_list

But I can't make it work :(

I tried :

'attribute_filter', 	array(array('myclass/selection_attribute', '=', array(1)))
'attribute_filter', 	array(array('myclass/selection_attribute', 'in', array(1)))
'attribute_filter', 	array(array('myclass/selection_attribute', '=', 1))
'attribute_filter', 	array(array('attributeId', 'in', 1))
'attribute_filter', 	array(array('attributeId', '=', array(1)))
[...]

where '1' is the option index selected in the object of type "myclass"

The selection method is "unique".
Please note that I'm able to do an attribute_filtering with a content list fetch.

Any idea please ?

Thanks in advance :)

Jeremy B.

Tuesday 25 August 2009 8:21:32 am

Reply to myself, attribute_filtering is juste not availble with a search fetch :(

André R.

Tuesday 25 August 2009 11:09:53 am

You'll need ezfind to be able to do that, take a look in chapter 6 (especially the 'filter' section) in:
http://ez.no/doc/extensions/ez_find

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.