Property description

The templates property configures the UI of a search area (search forms), including its facets.

Minimal JSON

{}
{
  "key": "form",
  "template": {
    "formId": "form",
    "title": "title.recipe.tutorial.search",
    "defaultFacets": []
  }
}

Example taken from Search Area Configuration.

Nested properties

PropertyDescriptionValuesMandatory
defaultFacetsConfigures the search area’s facets used to filter search results. You can define multiple facet levels.jsonNo
formIdKey of the search form.stringNo
resultTextLinesAfterNumber of text lines (rows) which appear after a search result. Usually, 1 is preferred.integerNo
resultTextLinesBeforeNumber of text lines (rows) which before a highlighted term in the search result. Usually, 2 is preferred.integerNo
sortDefines how facets are sorted in the search form.jsonNo
titleTranslation key of the title. Define the key in translations to specify how the text is displayed in the UI. Unlike the name property, if you use a specific string of text for the title, this text will appear with the package key. For example, Comment Section will be displayed as package_key_comment section.stringNo