This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Developer » eZTags - extendedattributefilter

eZTags - extendedattributefilter

eZTags - extendedattributefilter

Tuesday 18 October 2011 1:31:36 pm - 1 reply


I have sucessfully been using eZTags and the attribute filter, but i have always settled for using an or condition when i add tagids as params to my fetch function using the extendedattributefilter.

I currently need to be able to retrieve only results which match content tagged with two tags, thereby needing the support for 'and' condition. Is this possible today? (netgen guys you probably know this..)

Tuesday 18 October 2011 3:08:47 pm

Hi Lars,

currently the extended attribute filter in eZ Tags does not support AND condition, only OR, but it should be relatively easy to add, although, I'm not really sure how the extended attribute filter would perform because right now I only see subqueries as a solution to this problem, for example:


SELECT * FROM ezcontentobject o
WHERE ( SELECT COUNT(*) FROM eztags_attribute_link a WHERE a.keyword_id IN (730, 731) AND a.object_id = AND a.objectattribute_version = o.current_version ) = 2


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

36 542 Users on board!

Forums menu

Proudly Developed with from