Table of Contents


aspx:ActiveLanguagesDropdown

This component renders an HTML select element which shows a list of active languages and provides you with an option to allow users to change the language of the portal temporarily. 

<aspx:ActiveLanguagesDropdown runat="server" />

 

Properties

PropertyDescription
IdThe ID of the HTML element.
ToggleSiteLanguage

Automatically selects the current active language in the list of available languages.

AutoSelect

Hides the control if there are less than two language options.

AutoHide

Toggles the website language the user selects.

AutoRedirectAutomatically redirects users to the homepage after changing the language.
PlaceHolderA Text value that is shown to the user on the right side of the input component to assist the user.
HideLabelA Boolean value that specifies whether this field's label should be visible or not. If set to false, the input component spans across the entire row.
ReadOnly

A Boolean value that specifies whether this field is read only or editable.

 

The active language is determined by the following rules:
 
  1. If the user browsing the portal is an unauthenticated user, then Magentrix looks at the user's browser settings. If the user's browser language matches one of the languages supported on the portal, then the portal uses the language. Otherwise the default language set in the Company Preferences will be used.
     
  2. If the user browsing the portal is a known user (authenticated), then Magentrix looks at the user's language and the portal will be in that language.
    If the user's language is not identified, then the default language in the Company Preferences is used.

 

Example:

In order to allow users to toggle the language of the portal from the list of active languages:

<aspx:ActiveLanguagesDropdown runat='server' toggleSiteLanguage='true' autoSelect='true' autoHide='true'/>