Problem/Motivation

The ability to filter requires a textbox, and when there is only one or two facets links to show this makes the user experience worse instead of better, almost certainly is unhelpful at three or four, and it is a judgement call if it makes sense at five and more that sitebuilders should be able to make for themselves.

Proposed resolution

Make configurable the minimum number of facet links before showing text filter.

If there are only this many links to choose from, do not show the text box for filtering. Set to zero to always show the filter even if only one link to filter (not recommended).

Remaining tasks

Do it.

User interface changes

The option described.

API changes

None.

Data model changes

None.

Comments

mlncn created an issue. See original summary.

  • mlncn committed bed1328e on 1.0.x
    Add an option for Minimum number of facet links before showing text...

  • mlncn committed 30163c31 on 1.0.x
    Issue #3485421 by mlncn: Don't show the textbox filter if there are so...
mlncn’s picture

Status: Active » Needs review
brianbrarian’s picture

Testing with an exposed filter for a taxonomy reference field (4 terms in taxonomy). Oliviero theme.

BEF settings for the filter:
Exposed filter widget = Filterable links
Minimum number of facet links before showing text filter = 8
Initial number of links shown = 10
Allow showing all links = not checked

Result:
Text box is not displayed for the filter, which is the expected result.