Add option to reset other facets on value change

Created on 29 December 2020, almost 4 years ago
Updated 6 February 2023, almost 2 years ago

Hello,

There is already a close issue to this one but I am not sure if it's the same.

So everything what is described in the other issue is the same for me until it comes to the critical part.

Imagine you have 2 facets (single valued):

A with values 1, 2, 3
B with values x, y, z

B depends on facet A with the value 2.

Now imagine you will select facet A with value 2.
After the next refresh, facet B will show up.
B will get the value x.

So I also have the problem from the critical part, but I don't want/need such a complex solution. In my case I display the facets as "List of links". The only thing I want is that the links from facet A never change, no matter what I select on facet B. Maybe this is somehow possible. I don't know how this module works, but is it possible to just remove all other facet from the URL on facet A before it gets rendered?

Proposed solutions

(see comment #3)
A) Add an option to "Reset other facets values" - which might be a first workaround and could be helpful in other cases. This is implemented in MR!68:

B) Fix #2993101: Display facets when there are no search results & Consider including a processor which always includes active filters in the list of facet results Needs review and also implement a functionality to automatically remove facet filters without results completely (e.g. that also wouldn't be shown in combination with the existing facets values) - which might be quite complicated

C) As this is most useful for LinksWidget, we could (in Facets or contrib) create something like an @FacetsWidget: ExclusiveLinksWidget extends LinksWidget removing other filter parameters. But that would make the functionality exclusive to that widget.

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇦🇹Austria kitikonti

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