Home » Forum

Announcement

Collapse
No announcement yet.

Excluding selected categories

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Excluding selected categories

    Hello,

    it is possible to realize a category excluding filter?

    Searching in all categories but exclude some selected categories (see screenshot in attachment).

    Many thanks in advance for your help.

    Best regards,

    John

  • #2
    This is not something that is configurable within Zoom. We have not tested it but if you are experienced with JavaScript, you may be able to wrangle up a solution.
    • You would need to enable "Allow searching in multiple categories" in Zoom under "Configure->Categories"
    • You will need to disable generating the default search form and specify your own. Similarly to the picture you have attached.
    • You would need to capture and handle the submit event for your form.
    • In your event handler, you will create the actual query that gets submitted. e.g. You have 4 Categories, you want to search All EXCEPT Category 2 so the search query would be something like "...search.php?zoom_query=dogs&zoom_cat[]=0&zoom_cat[]=2&zoom_cat[]=3"
    Again we have not tested it, but it might work.

    Comment

    Working...
    X