Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When i use the "Current search" block, the facets i've used is shown in it. It would be nice with an option in the block configuration for the facet blocks to hide when they are used, since they only contain the filtered facet that is also shown in the current search block. I tried to set the "Minimum result count" to 2, but it did only affect the initial facet block after search, not when it has been used.
Comment | File | Size | Author |
---|---|---|---|
#2 | search_api_facets.show_active.patch | 4.46 KB | drunken monkey |
Comments
Comment #1
drunken monkeyGood idea!
I'll get to it, when I have more time.
Comment #2
drunken monkeyHow about this one?
All facets get a new option, "Show active facet links". If deactivated, the "(-) foo" links will vanish from the block. If there also are no additional facet links to click, the whole block won't be displayed.
Comment #3
drunken monkeyWell, I'll just assume this serves your use case, then. Don't want this patch lying around too long.
=> Committed.