Project

General

Profile

Actions

Feature #93875

open

Populate site settings depending on language to TypoScript constants

Added by Joerg Boesche about 3 years ago. Updated 9 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & 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 #1

Updated by Joerg Boesche about 3 years ago

  • Related to Feature #91080: Populate site settings to TypoScript constants added
Actions #2

Updated by Oliver Hader over 1 year ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Oliver Hader over 1 year ago

Seems to be useful, but also raises complexity since merging/overriding site-settings and language-settings is required (the usual problem with inheritance).

Actions #4

Updated by Benni Mack 9 months ago

  • Sprint Focus deleted (On Location Sprint)
Actions

Also available in: Atom PDF