#100399Constant substitution in stdWrap.data
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
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 5
-
Simon Schaufelberger commented <span data-processor="relativetime" data-value="2023-04-30T05:26:56+00:00" > 04/30/23, 05:26 </span>
-
Simon Schaufelberger changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2023-04-30T06:38:22+00:00" > 04/30/23, 06:38 </span> -
Roman Büchler commented <span data-processor="relativetime" data-value="2023-05-31T11:05:14+00:00" > 05/31/23, 11:05 </span>
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.
-
Benni Mack changed target version <span data-processor="relativetime" data-value="2023-06-05T09:21:00+00:00" > 06/05/23, 09:21 </span>
-
Georg Ringer commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2026-10-02T07:34:32+00:00" > 10/02/26, 07:34 </span>As stated by Simon
value = {$myConstant}is the correct code. It has never been supported without. Therefore closing the issue. hope this is ok for you
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.