Project

General

Profile

Actions

Feature #91646

closed

TSConfig Condition: Symphony Pentand to [globalVar = GP:defVals|tt_content|colPos==2]

Added by Joe Jones almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2020-06-15
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Dear TYPO3-Team,

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?

Thanks you
Martin

PS: In this forum it would be cool to choose TS and Fluid as Code-Language :-)

Actions #1

Updated by Oliver Hader almost 4 years 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]
Actions #2

Updated by Oliver Hader almost 4 years ago

  • Category changed from Backend User Interface to TypoScript
  • Target version deleted (9.5.18 & 10.4.3)
Actions #3

Updated by Oliver Hader almost 4 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF