Kanti's Blog

Der "PHP Freak"

Set Variants for the Entry Point

- Veröffentlicht unter TYPO3 von

If you want to set your, TYPO3 Site configuration from Environment Variable:

rootPageId: 1
base: /
languages:
  -
    title: English
    enabled: true
    languageId: '0'
    base: /en/
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-us
    direction: ltr
    flag: us
errorHandling: {  }
routes: {  }
baseVariants:
  -
    base: '%env("MAIN_SITE_BASE_URL")%'
    condition: 'getenv("MAIN_SITE_BASE_URL") != ""'