Project

General

Profile

Actions

Bug #103875

closed

Conditions are ignored in sys template

Added by Florian Rival about 1 month ago. Updated 25 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2024-05-22
Due date:
% Done:

100%

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

Description

If I have a TypoScript file included with a condition in sys_template , field config , like that:

<INCLUDE_TYPOSCRIPT: source="DIR:EXT:my_ext/Configuration/TypoScript/" condition="[tree.level >= 2]">

or even like this :

[tree.level >= 2]
   @import 'EXT:my_ext/Configuration/TypoScript/*.typoscript'
[END]

the condition is not applied and the TypoScript is always applied (i.e. the file is always included).

If I set the same condition inside the TypoScript file itself then the condition work as expected.

[tree.level >= 2]
    lib.myVariable = TEXT
    lib.myVariable.value = IT WORKS
[END]

The conditions defined in sys_template field config are not event displayed in module "TypoScript > Active TypoScript > Setup > Conditions".


Related issues 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF