[BUGFIX] Do not force content_fallback to default page language 26/54426/7
authorBenni Mack <benni@typo3.org>
Tue, 17 Oct 2017 22:06:21 +0000 (00:06 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 23 Oct 2017 07:40:27 +0000 (09:40 +0200)
commit113943c6d0d29a51ad2d3b13b4850b001fde1829
treeccb34299cd71be7c6e0e9070e8eff261928ef781
parentf0d731dd62d9d6296991a75ac9ca841068039e2d
[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/54426
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.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