Project

General

Profile

Actions

Bug #98588

open

Condition for colpos not working in PageTSConfig

Added by Bernhard Eckl almost 2 years ago. Updated about 1 month ago.

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?


Related issues 4 (3 open1 closed)

Related to TYPO3 Core - Bug #100981: traverse(site('configuration') doesn't work in content edit viewNew2023-06-09

Actions
Related to TYPO3 Core - Bug #92516: Symfony expressions/conditions doesn't work in user-tsconfig in context menuNew2020-10-08

Actions
Related to TYPO3 Core - Bug #81853: TSconfig with page based condition is ignored using page tree commands and clipboardNew2017-07-13

Actions
Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Actions #1

Updated by Christoph Lehmann over 1 year 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

Actions #2

Updated by Georg Ringer about 1 month ago

  • Status changed from New to Accepted

still valid in v13

Actions #3

Updated by Georg Ringer about 1 month ago

  • Related to Bug #100981: traverse(site('configuration') doesn't work in content edit view added
Actions #4

Updated by Georg Ringer about 1 month ago

  • Related to Bug #92516: Symfony expressions/conditions doesn't work in user-tsconfig in context menu added
Actions #5

Updated by Georg Ringer about 1 month ago

  • Related to Bug #81853: TSconfig with page based condition is ignored using page tree commands and clipboard added
Actions #6

Updated by Christian Kuhn 28 days ago

Actions

Also available in: Atom PDF