Project

General

Profile

Actions

Feature #93875

open

Populate site settings depending on language to TypoScript constants

Added by Joerg Boesche over 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2021-04-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The TypoScript constants can be defined in the page's config.yaml. It is not possible to set the constants language dependent.

Example:
A page has multiple languages.
ID 0: english
ID 1: german

Default settings:

[...]
settings:
   theme: client

For the language German (ID: 0) the value "client-German" for the constant "theme" should be used.

languages:
  - title: German
    enabled: true
    languageId: '1'
    base: /de/
    typo3Language: de
    locale: de_DE.UTF-8
    iso-639-1: de
    navigationTitle: Deutsch
    hreflang: de-DE
    direction: ''
    flag: de
    settings:
      theme: client-german

Currently a mixture of SiteConfiguration Yaml and TypoScript Condition (siteLanguage == 1 ...) has to be created. In order to configure this in one place, the "settings" in the Yaml file should be able to be set depending on the language.

---
Populate site settings to TS constants was introduced with: #91080


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #91080: Populate site settings to TypoScript constantsClosedBenni Mack2020-04-17

Actions
Actions

Also available in: Atom PDF