Issue Bug Closed

#100399Constant substitution in stdWrap.data

Roman Büchler 04/03/23, 06:06 updated 10/02/26, 07:34

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

  1. Simon Schaufelberger commented <span data-processor="relativetime" data-value="2023-04-30T05:26:56+00:00" > 04/30/23, 05:26 </span>

    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.

  2. 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.

  3. Georg Ringer commented and changed status Needs Feedback Closed <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