Hide block if no facets are active

Created on 6 April 2021, about 4 years ago
Updated 7 July 2023, almost 2 years ago

Problem/Motivation

The user can select to "exclude empty facts", but if a block remains "facet-less" (this is, all facets are excluded in the current search) it will nevertheless be printed on-screen as an empty block.

Steps to reproduce

- Create a facet block
- Add several facets and choose "exclude empty facets"
- Perform a search that will have all block facets excluded.
- The block is rendered (i.e.., if the block has styling or a title, it appears)

Proposed resolution

Don't build the block if the facets are all excluded.

This could be either a default behavior or exposed through the admin UI.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇪🇸Spain idiaz.roncero Madrid

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