-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature]: Hide values in filters with no related content #95
Description
Background
In some cases it with be beneficial to hide values in the search filter that have no associated content (for example "Fag" or "Målgruppe" without any current courses). Showing filter values that lead to no results can create confusion and may give the impression that available content is limited. By hiding values with no content, the filter would present only relevant options and provide a clearer and more accurate user experience.
Considerations:
- Users may look for options that are no longer visible. Attention should therefore be given to the overall user journey and discoverability.
- The weighting or visibility of values may change when some lose results while other filters are active.
- Alternative approach: Values with no results remain visible but are placed at the bottom of the list.
Acceptance Criteria
Backend
In the backend settings when inserting a search block on a simple content page for this content:
- Undervisnings- og læringsforløb
- Opgave
- Kursus
a configuration option (consisting of checkboxes) should be available with the title “Skjul tomme filterværdier for brugeren”
Checkboxes should be available for the filters where empty values can be hidden, being:
- Fag
- Læreplanstemaer
- Målgruppe
All checkboxes are disabled by default.
Frontend
- If a checkbox is activated, filter values with no associated content should be hidden for the selected filter.
Example:
In backend the editor has chosen to activate the checkbox for "Læreplanstemaer" and the two values with zero hits marked with blue are hidden.
Assumptions / Prerequisites
No response
Implementation Breakdown
No response
Test Description
No response
Risks and Risk Assessment
No response
Not included
No response
Design
No response
Data foundation
No response
Notes
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status