Feature #34621
closedAllow <INCLUDE_TYPOSCRIPT to include directories (recursive)
100%
Description
You can already include Typoscript files like this:
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:mysite/Typoscript/setup.ts">
I (and I suppose many others) like to organize my Typoscript in a series of files (one for each plugin, lib, one for general config, etc.) in subdirectories. To do this, you need to maintain a file (or record) with all include tags.
Therefor I propose a new feature:
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:mysite/Typoscript">
Functionality:
This will include all files from directory EXT:mysite/Typoscript, including sub-directories.
The order in which files are included is: first directories, then files, both alphabetically.
Only files with Typoscript-extensions (ts, t3, t3s, t3c, txt) are included, configurable in the installtool: $TYPO3_CONF_VARS['SYS']['tsfile_ext']
(The function checkIncludeLines in class.t3lib_tsparser.php needed quite a rewrite but all existing functionality should be 100% identical to what it was.)