This page is still a beta!

4.2. Typoscript Constants Reference

Property:

Data type:

Description:

Default:

file.templateFile

fileResource

The name of the HTML template file.

EXT:sr_language_menu/pi1/tx_srlanguagemenu_pi1_template.tmpl

defaultLanguageISOCode

string

Language ISO-alpha-2 code of default site language.

This is the  language ISO-alpha-2 code of the site language when sys_language_uid = 0

EN

defaultCountryISOCode

string

Country ISO-alpha-2 code of default site language.

This is the  country ISO-alpha-2 code of the site language when sys_language_uid = 0

englishFlagFile

fileResource

Name of the file of the English language flag.

All flags should be in the same directory as this one.

EXT:sr_language_menu/flags/en.gif

useSysLanguageTitle

boolean

Use the sys_language title.

If enabled (set to 1), the title field of table sys_language will be used instead of the language name from the static_languages table.

0

useIsoLanguageCountryCode

boolean

Use the ISO language and country codes.

If enabled, the ISO language code and, possibly, the country code will be used instead of the language name from the static_languages table.

Note: Ignored if useSysLanguageTitle is enabled.

0

useSelfLanguageTitle

boolean

Display name of language in the language itself.

If enabled, the name of the language will be displayed in the language itself.

Note: Ignored if either useSysLanguageTitle or useIsoLanguageCountryCode is enabled.

1

languagesUidsList

string

List of uids of language records from table sys_language.

Note: This list will be used by default to build the list of languages to select from, if no list is otherwise provided to the plugin.

Note: If the list is empty and not otherwise provided to the plugin, all languages found in table sys_language will be used.

Note: If the list is not empty and not otherwise provided to the plugin, it also specifies the order in which the languages appear in the menu.

defaultLayout

string

Default layout.

Possible values: 0 = flags, 1 = selection list, 2 = list of links.

Note: This default layout to be used, if no layout is otherwise provided to the plugin.

0

showLinkWithFlag

boolean

Show both links and flags.

If enabled, when using the flags layout, both flags and links may be shown.

0

hideIfNoAltLanguages

boolean

Hide selection if there is no alternate language

If enabled, the selection list or menu is not rendered if no alternate languages are present on the current page.

0

showCurrent

boolean

Show the language of the current page in the language menu.

If enabled, the current language is shown in the language menu.

Note: Beware that this constant is used in the default setup. Setting a property with the same name in TS setup will not work.

1

showCurrentFirst

boolean

Show the language of the current page first in the language menu.

If enabled, the current language is always the first item shown in the language menu.

0

showInactive

boolean

Show in the language menu the languages for which there is no translation of the current page.

Note: This property does not apply to the selection list layout.

Note: Beware that this constant is used in the default setup. Setting a property with the same name in TS setup will not work.

1

doNotLinkCurrent

boolean

Do not wrap the current language in a link.

Note: This property does not apply to the selection list layout.

0

doNotLinkInactive

boolean

Do not wrap inactive language in a link.

Note: This property does not apply to the selection list layout.

1

pointerImage

string

File name of the pointer image.

Note: The pointer may be used in stdWrap to highlight the currently displayed language.

typo3/gfx/content_client.gif

separator

string

Separator between links.

Note: String to be used in stdWrap as separator between links in the list of links layout.

Note: In order to display | as separator, one must specify

separator = |

 

token

string

Token used in stdWrap split of the list of flags and the list of links.

|

removeParams

string

List of parameters that should not be forwarded when linking to another language.

Note: The list may include the name of an array of varaibles such as the array of variables of a plugin, for example “tx_my_pi1”.

user.pass

addSelectionListHeader

boolean

If enabled, when the layout is a selection list, a header will be added at the top of the list.

1

selectionListSeparator

string

Separator between the selection list and its header, if the selection list header is enabled.

----------

addLinksListHeader

boolean

Add a header in front of the list of links.

If enabled, when the layout is a list of links, a header will be added at the top of the list.

0