[BUGFIX] Do not force content_fallback to default page language 64/54464/2
authorBenni Mack <benni@typo3.org>
Tue, 17 Oct 2017 22:06:21 +0000 (00:06 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Wed, 25 Oct 2017 05:37:25 +0000 (07:37 +0200)
commita2bca832f0efa9c49c72f229bfc48fcac56d270e
tree34bb99021027eb5892c847d1a703ab6315b310c3
parent0e0ee80a9334227ed081d079a6d14a7ef3a2e89f
[BUGFIX] Do not force content_fallback to default page language

If a page translation is not available, the TypoScript option
`config.sys_language_mode` has the option
`content_fallback;listofuids` to define to which other language
translations should be fallen back.

However, if NONE of the defined page translations are available,
a fallback to the DEFAULT language is made (because the
foreach just does not apply) which can not be stopped at all.

To define an explicit 404 when a translated page NOR its
fallbacks are available the special keyword "pageNotFound" is added,
which can be added to
`config.sys_language_mode = content_fallback;3,2,pageNotFound`
and if none of 3,2 are available, a page not found message
is thrown.

Resolves: #82794
Releases: master, 8.7
Change-Id: I90af4e9f9685ffc7db8c562207e3df08786c0ca9
Reviewed-on: https://review.typo3.org/54464
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Important-82794-AddedSysLanguageModeFallbackStop.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php