Project

General

Profile

Actions

Bug #102742

open

TypoScript constants not usable in value modification addToList()

Added by Karsten Nowak (undkonsorten) 4 months ago. Updated 14 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-01-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If we use constants in value modifications like addToList() (maybe others too) they are not replaced with the value of the constants. Used constants are not nested constants!

Example:

# TypoScript Constants
test.foo = bar
# TypoScript Setup
page.1 = TEXT
page.1 {
  value = Test1
  value := addToList({$test.foo})
}
page.2 = TEXT
page.2 {
  value = Test2
  value := addToList(one,two)
  wrap = <br />|
}

Expected output should be

Test1,bar
Test2,one,two

but is

Test1,{$test.foo}
Test2,one,two

In "Active TypoScript" with activated checkbox "Substitute constants in setup" it is also not replaced.

Environment: TYPO3 12.4.9 and PHP 8.2.4


Files

clipboard-202401031121-wvn5c.png (8.96 KB) clipboard-202401031121-wvn5c.png Karsten Nowak (undkonsorten), 2024-01-03 10:21

Related issues 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF