Bug #100399
openConstant substitution in stdWrap.data
0%
Description
The following results in an empty output:
page.200 = TEXT page.200.data = $myConstant
Where the following shows the value from $myConstant:
page.210 = TEXT page.210.dataWrap = {$myConstant}
According the description from dataWrap data should return as well the value from $myConstant.
See: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Stdwrap.html#datawrap
Updated by Simon Schaufelberger over 1 year ago
Should it not be:
page.200.value = {$myConstant}
? This definitely works, I've tried it out.
data expects some functions (see https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Data.html) as input while a constant is not part of that.
Updated by Simon Schaufelberger over 1 year ago
- Status changed from New to Needs Feedback
Updated by Roman Büchler over 1 year ago
I think the issue here is rather that the processing from the data type Data/getText is not consistent.
According the documentation the content from curly braces in the property dataWrap is treated as type Data/getText. Since the property data is of the same type the same result is expected... From the docs:
Regarding data: Data type: Data / getText / stdWrap
Regarding dataWrap: The content is parsed for pairs of curly braces. The content of the curly braces is of the type Data / getText and is substituted with the result of Data / getText.
Updated by Benni Mack over 1 year ago
- Target version changed from 12 LTS to Candidate for patchlevel