m41r / nested-typoscript-constants
A simple proof-of-concept extension to support nested TypoScript constants again after the new TypoScript Parser introduction in Typo3 v12.
Installs: 217
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- typo3/cms-core: ^12 || ^13 || dev-main
- typo3/cms-frontend: ^12 || ^13 || dev-main
README
ATTENTION: this extension is just an example on HOW you can achieve it. While it's not the optimal solution available, it provides a quick and functional approach. If you discover a better solution, I'd gladly integrate it.
About
With the introduction of the new TypoScript Parser in Typo3 v12, the feature allowing nested constants (examples provided below) was initially removed. For those heavily reliant on this functionality (like myself), there seemed to be limited options. However, after raising awareness through the Forge issue #101752 and patch #81078, the feature has been reinstated. This restoration now allows us to use it again without requiring additional code adjustments on the users end.
Examples
Constants:
normal = World
nested = Hello {$normal}
Setup:
page.10 = TEXT
page.10.value = {$nested}
Current output (without the patch/listener):
Hello {$normal}
Expected output (with the patch/listener):
Hello World
Requirements:
- At least Typo3 v12
- The patch #81078 should either be already merged into Typo3 or added manually via composer patches