This article provides an overview on what to know about filters for the Locator & Pages product.
Basic Filters
As Locator & Pages comes as an out-of-the-box solution, the filters don't need to be set manually within the code snippet.
The only data-option which needs to be set is:
data-filter="services"
This way the services of the locations, which are displayed in the locator, will be used as filters.
Alternatively the data field brands could be used:
data-filter="brands"
Combinations of both fields are also possible:
data-filter="brands,services"
The "only open locations" filter is also present by default. To hide this filter the option is:
data-hideopennowfilter="true"
Advanced and custom filtering
For advanced and custom filter for Locator & Pages, refer to this article.
Filters in multiple languages
Locator & Pages can be set up as a Multi-Language Locator. See this article to learn to do so first.
As the filters are not automatically translated (user-provided information), the content in the data field services needs to be translated and uploaded via the import sheet.
For example as services(de), services(en), services(fr).
When setting up the respective language for the locator widget in
data-language="en"
The corresponding translations of "services(en)" will be shown as filters
Hide certain filters and change their order
By adding another data-option it is possible to not display certain services as filters. (Logic applies to alternative data fields)
data-filter-services=""
As an example the following are set as services:
- Location marketing
- Listings Management
- Online Marketing
- Local SEO
In order to just show the first three as filter options, the following data-option needs to be set:
data-filter-services="Location Marketing,Listings Management,Online Marketing"
In case the order of the filters needs to be rearranged like so:
- Online Marketing
- Listings Management
- Location marketing
The following needs to be set:
data-filter-services="Online Marketing,Listings Management,Location Marketing"
Read next: Advanced Filters for Locator & Pages