Add processor to show parents in hierarchical facets

Created on 21 September 2023, over 1 year ago

Problem/Motivation

I want to show parents of an facet item even if there is no results by parent. In this way I want to keep hierarchy same to defined for vocabulary. (By the way, should it be a native behavior of an hierarchy facet?)

There is "

Steps to reproduce

if there is no content assigned to "Parent" term, "Child" term is displayed as root in the hierarchical facet.

Proposed resolution

Add a ShowParentsProcessor

Remaining tasks

Write tests

User interface changes

New option in processors list

API changes

None, HierarchyInterface::getParentIds() already exists

Data model changes

None

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇧🇾Belarus dewalt

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

Comments & Activities

Production build 0.71.5 2024