Issue Bug Closed

#100166INCLUDE_TYPOSCRIPT stopped being deep recursive in v12

Dmitry Dulepov 03/14/23, 17:54 updated 07/09/24, 12:46

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!

Reviews 1