Project

General

Profile

Actions

Bug #92120

open

Condition tree.rootLineIds does not work in User TSconfig

Added by Tobias Schmidt about 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2020-08-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In TYPO3 8 I've been setting the following default User TSconfig in ext_localconf.php via ExtensionManagementUtility::addUserTSConfig:

[PIDinRootline = 123]
    options.defaultUploadFolder = 1:myuploads/mywebsite1/
[END]
[PIDinRootline = 456,789]
    options.defaultUploadFolder = 1:myuploads/mywebsite2/
[END]

In TYPO3 10 I'm now trying to use the new condition syntax based on symfony expression language without success:

[123 in tree.rootLineIds]
    options.defaultUploadFolder = 1:myuploads/mywebsite1/
[END]
[456 in tree.rootLineIds || 789 in tree.rootLineIds]
    options.defaultUploadFolder = 1:myuploads/mywebsite2/
[END]

Using a condition like [page["uid"] == 124] for a single page works fine but I cannot manage to make tree.rootLineIds work. I noticed there a few bug reports regarding conditions and User TSconfig but none of them seems to be related to tree.rootLineIds.

Actions

Also available in: Atom PDF