web_fsearch_sort Shortcode
The web_fsearch_sort shortcode renders a sort selector for faceted-search results.
Usage
[web_fsearch_sort]
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. |
options |
— | String unless stated otherwise | Defines the selectable values using the format documented for this control. |
default |
default |
String unless stated otherwise | Defines the initially selected 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.
Define options through the builder using supported sort keys and visitor-facing labels. default must correspond to one configured option or the faceted-search default. Offer only meaningful choices—such as relevance, date, title, or an indexed numeric value—that the configured content model can sort consistently.
Test every option with enough records to reveal the order, plus an active filter, pagination, URL restoration, and browser back/forward navigation. If an option appears to do nothing, verify its key and indexed data rather than adding a second sort control.
Verification
Test web_fsearch_sort with the configured Faceted Search context, active selections, no selections and an empty result set. Pay particular attention to class and label.