3

I have Search API with Facets API set up. For my checkbox selections, how can I prevent the facets from hiding when they aren't available? I want all of the facets to be listed, even if not available.

I can't seem to find an easy way to do this.

EDIT: I may have incorrectly used the term "facets" here. I mean to say filter options. So, if blue, red, and green are options, but the only available results are blue, I still want red and green to display as check boxes.

1
  • You can fake it by making Facet Blocks combined with Facet API Pretty Paths. Just rewrite the URLs in the view to go to the Facet path. Feb 12, 2014 at 20:19

1 Answer 1

4

Try to set this option

enter image description here

on facet settings form.

2
  • That didn't work, but I see where someone actually submitted a patch for this today, so I'll run that and report back.
    – vintorg
    Feb 16, 2014 at 2:13
  • I added the patch from this issue to the search_api_db module: drupal.org/node/1658964, and set the Minimum facet count to 0. My inactive filters now display.
    – vintorg
    Feb 19, 2014 at 6:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.