Project

General

Profile

Actions

Bug #100166

closed

INCLUDE_TYPOSCRIPT stopped being deep recursive in v12

Added by Dmitry Dulepov about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2023-03-14
Due date:
% Done:

100%

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

Description

I have the following directory strucure:

localPackages/composer/template/Configuration/TypoScript/
├── Setup
│   ├── Config.typoscript
│   ├── Lib
│   │   ├── ContentElement.typoscript
│   │   ├── ParseFuncRte.typoscript
│   │   └── Register.typoscript
│   ├── Page.typoscript
│   ├── Plugin
│   │   ├── News
│   │   │   └── setup.typoscript
│   │   ├── Solr
│   │   │   └── setup.typoscript
│   │   └── Template
│   │       ├── Settings.typoscript
│   │       └── View.typoscript
│   └── TtContent
│       ├── Content.typoscript
│       ├── Element.typoscript
│       └── ImageElement.typoscript
├── constants.typoscript
└── setup.typoscript

setup.typoscript:

<INCLUDE_TYPOSCRIPT: source="DIR:EXT:template/Configuration/TypoScript/Setup/" extensions="typoscript">

In TYPO3 before v12 it would include every file with typoscript extension. In v12 it does not (see attachments named 01-*). Looks like it only includes a single immediate layer and one sublevel. I can see the content of Setup/Config.typoscript but not the content of Setup/Plugin/Template/Settings.typoscript.

If I include like this:

<INCLUDE_TYPOSCRIPT: source="DIR:EXT:template/Configuration/TypoScript/Setup/Plugin/" extensions="typoscript">

then I can see included TS from the next level - Setup/Plugin/Template/Settings.typoscript (see attachments named 02-*).

I believe it should work exactly the same way as it did before v12: include everything recursively. This a very convenient feature for projects with a lot of TS files in hierarchies. Limiting it to just one level seriously degrades functionality.

Please, make it work like before. Thanks!


Files

01-including-setup.jpg (479 KB) 01-including-setup.jpg PhpStorm view of TS hierarchy, inclusion and content Dmitry Dulepov, 2023-03-14 17:49
01-ts.jpg (381 KB) 01-ts.jpg TS object browser for inclusiog of .../Setup/ Dmitry Dulepov, 2023-03-14 17:49
02-including-plugin.jpg (480 KB) 02-including-plugin.jpg PhpStorm view of TS hierarchy, inclusion and content Dmitry Dulepov, 2023-03-14 17:49
02-ts.jpg (431 KB) 02-ts.jpg TS object browser for inclusiog of .../Setup/Plugin/ Dmitry Dulepov, 2023-03-14 17:49

Related issues 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF