TSConfig Condition: Symphony Pentand to [globalVar = GP:defVals|tt_content|colPos==2]
I am looking for the pendant to [globalVar = GP:defVals|tt_content|colPos==2] for TYPO3 10 Symphony Condition. I did not find any solution and wonder, if nobody needs different page-configs for main- and aside-Columns.
One hint in the documentation was "request.getPageArguments()". So I tried
[request.getPageArguments().get('defVals|tt_content|colPos') == 2]
without any success.
Maybe there is a working solution and I did not get it?
PS: In this forum it would be cool to choose TS and Fluid as Code-Language :-)
Updated by Oliver Hader 6 months ago
In the backend for using TSconfig the
request is provided by
RequestWrapper (see https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/ExpressionLanguage/RequestWrapper.php).
It is possible to make use of the methods provided there...
# for a GET request having &defVals[tt_content][colPos]=2 [request.getQueryParams()['defVals']['tt_content']['colPos'] == 2] ... [end] # for a POST request having &defVals[tt_content][colPos]=2 (in body) [request.getParsedBody()['defVals']['tt_content']['colPos'] == 2] ... [end]