Project

General

Profile

Actions

Bug #92100

closed

Yaml File Loader doesn't keep imported items in the order in which they are imported

Added by Jigal van Hemert about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Category:
Miscellaneous
Target version:
-
Start date:
2020-08-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In a multi-site multi-language installation the sites configuration is built from various imported files. If you import languages in a certain order they appear in the reversed order in the resulting configuration. This means that the wrong language is seen as the default language.

imports:
  - { resource: 'English.yaml' }
  - { resource: 'German.yaml' }

and English.yaml contains stuff like

languages:
  -
    title: English
    enabled: true
    languageId: 0
    base: '/'
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ''
    fallbackType: strict
    flag: gb

Then the German configuration comes first, which makes that the default configuration.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #98399: Enable natural ordering of YAML imports by defaultClosedBenni Mack2022-09-21

Actions
Actions

Also available in: Atom PDF