Kentico CMS 6.0 Developer's Guide

Displayed language selection

Displayed language selection

Previous topic Next topic Mail us feedback on this topic!  

Displayed language selection

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

This topic explains configuration that affects which language version is displayed to users when they access a website.

 

Configuration for registered users

 

Website culture displayed to registered website users depends on each user's Preferred content culture setting. Users themselves can change this setting in CMS Desk -> My desk -> My profile, or on the live site by means of the My account web part. Website administrators can adjust these settings in Site Manager -> Administration -> Users -> edit (Edit) -> General.

 

Depending on this configuration, the user will either see the content in their preferred culture (if available), or in the website's default content culture (if set to (default) or if the preferred culture is not available).

 

Configuration for anonymous visitors

 

It is also possible to configure the content culture displayed to anonymous visitors of the website. This can be done separately for the main website domain and for individual domain aliases:

 

Site Manager -> Sites -> edit (Edit) -> General -> Default visitor culture - used for visitors accessing the website through a URL using the main domain.

Site Manager -> Sites -> edit (Edit) -> Domain Aliases -> edit (Edit) -> Default visitor culture - used for visitors accessing the website through a URL using the respective domain alias.

 

The values can either be set to one of the cultures available for the website, or to (Automatic), in which case the user's browser settings will be used (in Internet Explorer, you can set the default language in Tools -> Internet Options -> Languages).

 

Domain-based language selection for anonymous visitors

 

Using the settings for anonymous visitors explained above, you can configure the system to use different default languages based on the current domain. For example, if you use the following domains:

 

example.com (main domain)

example.de (domain alias)

example.fr (domain alias)

 

you can set English, German and French as the default cultures for the domain and domain aliases (respectively). Now, when a visitor comes first to e.g. example.fr, website content is automatically displayed in French.