The following table summarises the options in the article extras of the Search template.
Field Name | Type | Description |
---|---|---|
ITEMSPERPAGE | Number | The number of results to display per page |
SEARCHINGINSTEADFOR | Drop-down | Yes/No to enable search instead |
SUGGESTIONS | Drop-down | Yes/No to enable search suggestions |
SEARCHBARPLACEHOLDER | Text | Placeholder text for the search input when it appears around your site, eg in the header. Defaults to "Search..." |
SEARCHTEMPLATEPLACEHOLDER | Text | Placeholder text for the search input on the Search template. Defaults to "Search..." |
SORTORDERS | List Box | Select the sorting options that the user will e able to select. If none are selected results are ordered by relevance |
COLLECTIONS | Checkbox Group | Articles/Media - if checked will be searched |
VIEWNAME | Drop-down | How article results will be displayed. Other than the default (an empty value) the only option is "Custom" which will implement the custom search view of any templates in the results. These views are described in the various templates that have them |
COLUMNS | Number Input | The number of columns results are displayed in (only relevant if custom views are enabled) |
ROOTARTICLES | Asset Lookup (multiple articles) | The root articles that will return content in the search |
LOCATIONSEARCH | Drop-down | Pick "yes" to enable to location features of the search article |
SHOWMAP | Drop-down | Whether or not to display results on a map |
DEFAULTTAB | Drop-down | Either "List" or "Map" - this tab will be open by default when results are displayed |
ENABLEPOSTCODE | Drop-down | Whether or not to enable the postcode and radius filter fields |
SEARCHPOSTCODEPLACEHOLDERTEXT | Text | Placeholder text for the postcode field |
DISTANCEUNIT | Drop-down | Whether the search uses miles or kilometres |
MAPPROVIDER | Drop-down | Either Google or OSM. The Google provider will need an API key to be added to your subsite configuration |
MAPCENTRE | Location Picker | The default starting point of the map |
ROOTMEDIAGROUPS | Asset Lookup (multiple media groups) | The media groups that will return content in the search |
ROOTMEDIATYPES | Asset Lookup (multiple media types) | The media types that will return in the search |
Various facet fields | Various | All of the facet configuration is interdependent and held in a single layout field |
Last modified on September 17, 2024