Issue Feature Closed

#34621Allow <INCLUDE_TYPOSCRIPT to include directories (recursive)

Loek Hilgersom 03/07/12, 00:58 updated 10/23/17, 21:48

Description

You can already include Typoscript files like this:
<include_typoscript: source="FILE:EXT:mysite/Typoscript/setup.ts"></include_typoscript:>

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"> <p>Functionality:</p> <p>This will include all files from directory EXT:mysite/Typoscript, including sub-directories.<br>The order in which files are included is: first directories, then files, both alphabetically.<br>Only files with Typoscript-extensions (ts, t3, t3s, t3c, txt) are included, configurable in the installtool: $TYPO3_CONF_VARS[‘SYS’][‘tsfile_ext’]</p> <p>(The function checkIncludeLines in class.t3lib_tsparser.php needed quite a rewrite but all existing functionality should be 100% identical to what it was.)</p></include_typoscript:>

Reviews 2