Skip to content
Snippets Groups Projects
Commit c03dc58f authored by Benni Mack's avatar Benni Mack
Browse files

[!!!][BUGFIX] Set up language in FE before TypoScript is evaluated

This change moves the language evaluation of a page record much earlier
in the frontend process.

Before:
* Resolve the page (determineId) based on permissions, visibility etc.
* get TypoScript from Cache
* Find a translation of the page and determine the content language

Now:
* Resolve the page based on permissions, visibility etc
* Find the translation of the page
* Get TypoScript from Cache

This is a breaking change, as the hooks within settingLanguage() are now
called at a different time of the processing logic for a frontend request,
however it solves an issue that you can now use localized values for
TypoScript conditions.

Resolves: #23736
Releases: master
Change-Id: Ia2db0233ce6680ae1cbcddb81574a41fa6333abf
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65044


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent d572562d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment