web_fsearch_facet Shortcode

The web_fsearch_facet shortcode renders one configured faceted-search facet.

Usage

[web_fsearch_facet id="facet-id" context="context-id"]

Attributes

Attribute Default Accepted values Purpose
id A facet ID generated for the selected context Selects the configured facet to render.
context A configured Faceted Search context ID Connects the facet to the result area and related controls.
label Plain text Overrides the configured visible label when needed.
class String unless stated otherwise Adds one or more custom CSS classes to the rendered control.

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.

Use the copy controls in the Faceted Search context editor. Do not invent facet or context IDs.

Verification

Test web_fsearch_facet with the configured Faceted Search context, active selections, no selections and an empty result set. Pay particular attention to id and context.

Related guides