Actions
Bug #104726
openConstants used within TypoScript setup text are not correctly displayed in "Active TypoScript"
Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2024-08-25
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Using the current main branch of the TYPO3 mono repository
I create one TypoScript backend root record and add the following:
- Constants:
tx_my_sitepackage { bgCol = bg-primary file.toplogo = EXT:my_sitepackage/Resources/Public/Images/Logo.png }
- Setup:
page = PAGE page { typeNum = 0 bodyTag = <body class="{$tx_my_sitepackage.bgCol}"> 10 = IMAGE 10.file = {$tx_my_sitepackage.file.toplogo} }
When "Show constant usage" is enabled there is an empty label and the constants are replaced without beeing marked:
This behaviour is different from how constant usage from TypoScript from extensions is displayed:
Files
Updated by Lina Wolf about 2 months ago
- Subject changed from Constants from the TypoScript backend report are not replaced correctly in "Active TypoScript" to Constants used within TypoScript setup text are not correctly displayed in "Active TypoScript"
Updated by Lina Wolf about 2 months ago
Edit: Constants are not replaced if they are used within a text but used when replaced directly without surrounding text:
Updated by Christian Kuhn about 1 month ago
- Related to Feature #97816: New TypoScript parser added
Actions
#5
Updated by Franz Holzinger about 1 month ago
- File ConstantsUnset-Example-active.png ConstantsUnset-Example-active.png added
- File ConstantsUnset-Example-included,png ConstantsUnset-Example-included,png added
- File Setup-ConstantsSet.png Setup-ConstantsSet.png added
I confirm this.
In my example there exists the constant plugin.tt_products.clickEnlarge, which is unset to 0. But in the active TypoScript it shows up as set to 1. I have cleared all caches in the Install Tool and backend. I have also added a local TypoScript constant which also unset it to 0. No change.
See the 3 screen shots.
Actions