Project

General

Profile

Actions

Feature #34621

closed

Allow <INCLUDE_TYPOSCRIPT to include directories (recursive)

Added by Loek Hilgersom over 12 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2012-03-07
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.)


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #50786: Loading TypoScript files is more picky about doubletick encapsulationRejectedMathias Schreiber2013-08-05

Actions
Related to TYPO3 Core - Bug #60681: <INCLUDE_TYPOSCRIPT: source="DIR:EXT:mysite/Typoscript"> includes hidden files…Closed2014-07-30

Actions
Related to TYPO3 Core - Bug #57914: INCLUDE_TYPOSCRIPT should skip hidden/temporary filesRejected2014-04-14

Actions
Actions

Also available in: Atom PDF