Snippets

This Mächler TYPO3 Typoscript l10n setup

Created by This Mächler
1
2
3
4
5
mod.SHARED{
  # *** default language setup ***
  defaultLanguageFlag=gb.gif
  defaultLanguageLabel=english 
}
config{
  linkVars = L
  # default language config
  sys_language_uid = 0
  sys_language_mode = content_fallback
  sys_language_overlay = hideNonTranslated
  language = en
  locale_all = en_EN.UTF-8
}

[globalVar = GP:L = 1]
  config.sys_language_uid = 1
  config.language = fr
  config.locale_all = fr_FR.UTF-8
[globalVar = GP:L = 2] 
  config.sys_language_uid = 2
  config.language = de
  config.locale_all = de_DE.UTF-8
[globalVar = GP:L = 3] 
  config.sys_language_uid = 3
  config.language = it
  config.locale_all = it_IT.UTF-8
[globalVar = GP:L = 4] 
  config.sys_language_uid = 4
  config.language = es
  config.locale_all = es_ES.UTF-8
[global] 

temp.mainTemplate.subparts.content-normal{
  table = tt_content
  renderObj =<tt_content
  select  {
  	where = colPos=0
    pidInList = this
    languageField = sys_language_uid
    includeRecordsWithoutDefaultTranslation = 1
    orderBy = sorting
  }
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.