Add ability to exclude selected filters

Created on 4 February 2025, 18 days ago

Problem/Motivation

First, let me thank you for this excellent module!

One major use case I have for this module is to display one or two filters in the main content region. Then in the sidebar, I want to display all the other exposed filters. And it works great.

But what if a new exposed filter is added to the View? I have to go update the configuration for that block I've placed in the sidebar, checking the new box for the new filter. Or if I've rendered an instance of the block plugin using drupal_block from twig_tweak, I might even have to edit some twig files so that the new filter shows up.

Proposed resolution

Add a checkbox to the configuration form that adds the ability to exclude the selected filters. In my case, I would configure the block in the sidebar to exclude the filters that are included in the block that is in the main region.

Remaining tasks

User interface changes

New checkbox that says "Exclude selected field"

API changes

New configuration option

Data model changes

A little schema change to account for the new option.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024