Color facet
The color facet can be used to show color icons to filter on.
Note
The color values are displayed by using the filter values found as the CSS background color. In order to use this component, make sure that the selected catalog field for this facet contains CSS supported values for coloring.
Example
Configuration
The following sections can be configured for this type of facet (in order of appearance in the Sitecore Content Editor):
- Appearance
- Data
- Facet
- Targeting
Data configuration section
The Data configuration section contains the following properties which can be configured:
Setting | Type | Description |
---|---|---|
Max number of items to display | number | Not supported by the Color facet. |
Max number of items threshold | number | Not supported by the Color facet. |
Field | dropdown | Select the appropriate catalog field from the dropdown list. |
Sort order | dropdown | Select the appropriate sort order for the facet values from the dropdown list if required. The following sort orders are supported:
|
Priority facet values | text | Use this property to allow facet values to appear first, regardless of the sort order. Use the pipe ( | ) symbol to separate values. |
Excluded facet values | text | Use this property to hide certain facet values. Use the pipe ( | ) symbol to separate values. |
Facet configuration section
The Facet configuration section contains the following properties which can be configured:
Setting | Type | Description |
---|---|---|
Multi select | checkbox | Not supported by the Color facet. |