web_fsearch_selections Shortcode
The web_fsearch_selections shortcode renders the currently selected facet values.
Usage
[web_fsearch_selections]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
context |
— | Enabled context ID | Explicit ownership; empty follows the current results context. |
class |
— | String unless stated otherwise | Adds one or more custom CSS classes to the rendered control. |
label |
— | Plain text | Optional heading above the selection buttons. |
empty_label |
— | Plain text | Message when no filter is selected; empty hides the content. |
button_style |
1 |
1 or a configured button-style slug |
Selects a button style defined in the POM design system. |
button_size |
default |
xs, sm, default, lg, x2, x2-large, x3-large, x4-large |
Selects the existing button-size helper. |
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.
One interactive context per page is supported. Multiple controls keep independent text and styles. Missing or disabled explicit contexts render nothing; an unavailable button style falls back to an enabled style. Page Builder administration can remain disabled.
Buttons remove individual choices or clear a range/search/rating/location facet as a unit. Supported taxonomy exclusions are labeled accordingly. Removal resets pagination and updates associated results and counters through the existing runtime, without an additional result query per instance.
The native equivalent is Faceted Search Selections.
Verification
Test web_fsearch_selections with the configured Faceted Search context, active selections, no selections and an empty result set. Pay particular attention to class and label.