Facet
Last updated on
31 May 2023
Facets could use hierarchy, can display number of results per facet, etc.
Properties:
- Type (
typestring). Common for all elements and defines the type of element. - Widget (
widgetstring). This name is taken from Drupal plugin for facet widgets. - Label (
labelstring). The name of the facet. - Settings (
settingsarray ). The facet settings. "facet" property should be used in endpoint request. - Weight (
weightinteger). The order of the element inside region.
Example object representation:
{
"id": "f167bf2d-4a97-4891-9cbc-6e06dd59dbfd",
"type": "facet",
"weight": "-7",
"settings": {
"facet": "date",
"show_numbers": false,
"soft_limit": 0,
"show_reset_link": false,
"reset_text": "Show all",
"hide_reset_when_no_selection": false,
"soft_limit_settings": {
"show_less_label": "Show less",
"show_more_label": "Show more"
},
"use_hierarchy": true,
"expand_hierarchy": false,
"field_alias": "field_date",
"url_alias": "date",
"show_title": false
},
"label": "Date",
"widget": "links"
}Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.