- Use Cases: The Country Selector is used so the user can select a country and its respective language from a list of configured countries and their respective languages and be redirected to the appropriate page. If required, the Country Selector should be created once per site and added to the pages.
- Dependencies
- SiteNavigation required. The Country Selector must be placed within the SiteNavigation of the page.
- Configurable Countries: The list of countries and their respective languages can be configured and it will reflect on all the pages where the Country Selector was added to.
CountrySettings:
Country Definition:
Creating a Country Selector
- In Content Editor, go to the global market folder of your site.
- For example: /sitecore/content/AWTSites/Templates/MarketRepositoryFolder/MarketSharedContentFolder/Global)
- Create a new CountrySettings item from the CountrySettings template in the global market folder of your site.
- Fill in optional field: Show Country Selector
- Create one or more Country Definition items (which will be every country/language available) from the Country Definition template within the CountrySettings item created in the previous step.
- Fill in optional fields: Language Code, Country Name, Language Name, etc
- In Experience Editor, insert the CountrySelector rendering into awt-header-country-selector placeholder within the SiteNavigation.
- Associate the CountrySettings item as the data source.
- Size Type: In the presentation details, the Size Type field for the CountrySelector rendering defines how the component will be displayed
- None (Default Mode): In the Default mode, the component is displayed as just an icon that when clicked will display the list of countries/languages
- Mobile: In the default mode, the component is displayed as a bar with the current language selected, and when clicked will display the list of countries/languages in a compact way
- There are currently no known issues with this component