Actions
Bug #98588
openCondition for colpos not working in PageTSConfig
Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2022-10-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The following condition does not work (tested in TYPO3 10 and 11):
[request.getQueryParams()['defVals']['tt_content']['colPos'] == 3]
TCEFORM.tt_content.header_layout.removeItems = 1,2,6,8,9,10
[end]
But it should according to:
https://forge.typo3.org/issues/91646
https://wiki.sebkln.de/doku.php?id=typo3:about:conditions
Is there another syntax to query the colpos?
Updated by Christoph Lehmann about 2 years ago
Does traverse() solve it for you?
This works
[traverse(request.getQueryParams(), 'defVals/tt_content/sys_language_uid') == 0] TCEFORM.tt_content.header.disabled=1 [end]
When using traverse() you also don't get undefined key warnings in newer PHP versions.
See https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Conditions/Index.html#traverse
Updated by Georg Ringer 5 months ago
- Related to Bug #100981: traverse(site('configuration') doesn't work in content edit view added
Updated by Georg Ringer 5 months ago
- Related to Bug #92516: Symfony expressions/conditions doesn't work in user-tsconfig in context menu added
Updated by Georg Ringer 5 months ago
- Related to Bug #81853: TSconfig with page based condition is ignored using page tree commands and clipboard added
Updated by Christian Kuhn 5 months ago
- Related to Feature #97816: New TypoScript parser added
Actions