Details
-
Improvement
-
Resolution: Fixed
-
Medium
-
4.0.0alpha1
-
None
Description
A wish that maybe is too much (or not adapted this way, maybe it can be done in another way), but a sort of "or" behaviour in filters could be interesting as it could allow to perform some filters on multiple content types or criterias without having to write custom filters.
Sort of things like:
{set $search=fetch(ezfind,search,
hash(
query,$search_text,
filter,array('( article/theme:test ) or ( folder/theme:another )'),
))}
or
{set $search=fetch(ezfind,search,
hash(
query,$search_text,
filter,array( '( article/theme:test ) or ( folder/anotherthemeattribute:test )' )
))}
would then be possible, or something maybe simplier like:
{set $search=fetch(ezfind,search, hash( query,$search_text, filter,array( 'or', 'article/theme:test', 'folder/anotherthemeattribute:test' ) ))}