Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14070

"or" logic on filters, that would allow filtering on multiple content types or criterias

    XMLWordPrintable

Details

    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' )
                             ))}

      Attachments

        Activity

          People

            pborgerm pborgerm
            alexandre.nion alexandre.nion
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: