Bug #89130

Page Preview should respect language fallbacks

Added by Tobias Gaertner 10 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-09-10
Due date:
% Done:

0%

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

Description

OK, we have a quite complicated setup... but its working and its necessarry, because parts of the website have different default languages in BE.

Here is a snippet from the a language-configuration in a site:

...
languages:
  -
    title: Deutsch
    enabled: false
    languageId: '0'
    base: /
    typo3Language: de
    locale: de_DE.UTF-8
    iso-639-1: de
    navigationTitle: Deutsch
    hreflang: de-DE
    direction: ltr
    flag: de
  -
    title: '√úbersetzung Deutsch (nicht verwendet)'
    enabled: true
    languageId: '2'
    base: /
    typo3Language: de
    locale: de_DE.UTF-8
    iso-639-1: de
    navigationTitle: Deutsch
    hreflang: de-DE
    direction: ltr
    fallbackType: free
    fallbacks: '0'
    flag: de
...

So effectively in FE the languageUid 2 is used but falls back to 0 (which is used in the BE)
This works great, BUT previewing hidden pages is not possible, because the preview does not respect the fallback defined in the site language.

Also available in: Atom PDF