In the exposed filter, list only countries really existing in the dataset

Created on 19 February 2019, almost 6 years ago
Updated 4 July 2024, 6 months ago

Using a set of preferred countries, the others being relegated to an optgroup, as Allow to set a list of preferred countries RTBC implements, is great for the widget.
But while it is a slight improvement for the views filter, it is not really what we want here:

  • It's static, requiring configuration.
  • The other countries are still on the select list, though choosing them leads to no results
  • The long list of checkboxes in the options form is outright horrible
  • An admin limiting the available options to some more frequent choices might miss a few, or new countries may appear in the dataset.
  • For the user, there's no immediate feedback which countries are present in the dataset.

What we need instead is a select that only lists countries that are really existing in the current dataset, Views Selective Filters style.

Though some preliminary D8 port 📌 [meta] Views Selective Filters D8 Port Fixed of that project exists, this is going to be quite some work, as neither the D7 version nor the D8 port has a proper API. However, we want this to work out of the box, without introducing any additional configuration or error sources. In the end, this could become some kind of Selective Filters API (and might then be split off or be incorporated into D8 Views Selective Filters.

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

Pancho UTC+2 🇪🇺 EU

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024