Issue Bug Closed

#102742TypoScript constants not usable in value modification addToList()

Karsten Nowak (undkonsorten) 01/03/24, 10:26 updated 07/09/24, 15:12

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.

clipboard-202401031121-wvn5c.png

Environment: TYPO3 12.4.9 and PHP 8.2.4

Reviews 9