Project

General

Profile

Actions

Bug #100399

open

Constant substitution in stdWrap.data

Added by Roman Büchler over 1 year ago. Updated over 1 year ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
TypoScript
Start date:
2023-04-03
Due date:
% Done:

0%

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

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

Actions #1

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.

Actions #2

Updated by Simon Schaufelberger over 1 year ago

  • Status changed from New to Needs Feedback
Actions #3

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.

Actions #4

Updated by Benni Mack over 1 year ago

  • Target version changed from 12 LTS to Candidate for patchlevel
Actions

Also available in: Atom PDF