#107378sys_template TS-Setup won't get parsed when containing TS-Conditions
Description
We are just migrating vom LTS 11 to 13, so the new Typoscript parsing becomes active… In some places, however, a behavior occurs that can only be explained by a bug.
For several extensions we have sys_templates containing the following setup:
plugin.tx_myextension {
settings {
someKeys = someValue
}
persistence {
storagePid = 123
}
view {
templateRootPaths {
10 = fileadmin/templates/{$global.project_path}/extensions/myextension/Templates
}
partialRootPaths {
10 = fileadmin/templates/{$global.project_path}/extensions/myextension/Partials
}
layoutRootPaths {
10 = fileadmin/templates/{$global.project_path}/extensions/myextension/Layouts
}
}
}
It is parsed as expected and all values are readable in the active TS.
But as soon as adding any Condition to the setup like
[10465 in tree.rootLineIds || 10616 in tree.rootLineIds || 10669 in tree.rootLineIds]
plugin.tx_myextension {
settings {
someKeys = someOverride
}
persistence {
storagePid = 987
}
}
[global]
The whole setup of this sys_template record is not present anymore. We read all the changelogs like https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Breaking-97816-TypoScriptSyntaxChanges.html but there is no note that conditions are not supported anymore. Also we have other sys_templates where it is working as expected.
Even any empty condition seems to break the whole parsing:
[10465 in tree.rootLineIds || 10616 in tree.rootLineIds || 10669 in tree.rootLineIds] [global]
We also tried [END], same behaviour.
Only when removing or commenting out the condition lines […] and [global], the record is parsed again.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] sys_template TS-Setup won't get parsed when containing TS-Conditions Resolves: #107378 Releases: main