As per the request at #1153980: Blocks are not hidden when no items are available for a facet, it would be great to be able to configure the behavior of empty facets.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | facetapi-1154794-4.patch | 13.73 KB | cpliakas |
| #3 | facetapi-1154794-3.patch | 14.09 KB | cpliakas |
Comments
Comment #1
cpliakas commentedOne idea for a setting is the feature request #1156606: Implement a configurable filter system that can alter the facet's render array prior to being passing to the widget.
Update... I posted before thinking this through. The feature request is for facets with a single item, so that facet wouldn't be empty and wouldn't apply.
Comment #2
cpliakas commentedThis is dependent on #1158256: Allow the realms to provide additional facet settings to the facet configuration form, since it will most likely be a realm-specific setting.
Comment #3
cpliakas commentedThis ended up being a fairly big change. The attached patch adds the functionality.
Comment #4
cpliakas commentedSame functionality, cleaned up commented out code.
Comment #5
cpliakas commentedI have been playing around with this for a little while and it seems to be a sane change. We can resolve any edge case bugs later. Committed at 90af74a.