web_fsearch_counts Shortcode
The web_fsearch_counts shortcode renders the current faceted-search result counts.
Usage
[web_fsearch_counts]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
class |
— | String unless stated otherwise | Adds one or more custom CSS classes to the rendered control. |
label |
— | String unless stated otherwise | Sets the visible control label. |
empty_label |
— | String unless stated otherwise | Sets the label displayed when the component has no active value. |
Faceted search context
Enable and configure Faceted Search in Settings → POM Theme → Content model → Faceted search. Controls, results, and gateways that belong together must use compatible context values.
label defines the normal result-count message and empty_label supplies the no-results message. Use the placeholders supported by the faceted-search count format in the builder instead of hard-coding a number. Keep the wording short enough to update without moving nearby controls excessively.
Test the unfiltered result, a narrowed result, no results, pagination boundaries, and restored URL state. The count must describe the same result gateway shown on the page; avoid placing one standalone counter near multiple independent result areas.
Verification
Test web_fsearch_counts with the configured Faceted Search context, active selections, no selections and an empty result set. Pay particular attention to class and label.