Project

General

Profile

Actions

Bug #104726

open

Constants used within TypoScript setup text are not correctly displayed in "Active TypoScript"

Added by Lina Wolf about 2 months ago. Updated 2 days ago.

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:

  1. Constants:
        tx_my_sitepackage {
            bgCol = bg-primary
            file.toplogo = EXT:my_sitepackage/Resources/Public/Images/Logo.png
        }
    
    
  2. 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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Actions #1

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"
Actions #2

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:

Actions #3

Updated by Lina Wolf about 2 months ago

  • Category set to TypoScript
Actions #4

Updated by Christian Kuhn about 1 month ago

Updated by Franz Holzinger about 1 month ago

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 #6

Updated by Benjamin Franzke 2 days ago

  • Status changed from New to Accepted
Actions

Also available in: Atom PDF