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 #1

Updated by Gerrit Code Review over 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9431

Actions #2

Updated by Gerrit Code Review over 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9431

Actions #3

Updated by Gerrit Code Review over 12 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9431

Actions #4

Updated by Gerrit Code Review over 12 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9431

Actions #5

Updated by Gerrit Code Review over 12 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13005

Actions #6

Updated by Gerrit Code Review over 12 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9431

Actions #7

Updated by Gerrit Code Review almost 12 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9431

Actions #8

Updated by Gerrit Code Review almost 12 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9431

Actions #9

Updated by Gerrit Code Review over 11 years ago

Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9431

Actions #10

Updated by Gerrit Code Review over 11 years ago

Patch set 9 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9431

Actions #11

Updated by Gerrit Code Review over 11 years ago

Patch set 10 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9431

Actions #12

Updated by Gerrit Code Review over 11 years ago

Patch set 11 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9431

Actions #13

Updated by Gerrit Code Review over 11 years ago

Patch set 12 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9431

Actions #14

Updated by Loek Hilgersom over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Chris topher over 11 years ago

  • Subject changed from Allow <TYPOSCRIPT_INCLUDE to include directories (recursive) to Allow <INCLUDE_TYPOSCRIPT to include directories (recursive)
  • Target version set to 6.2.0
Actions #16

Updated by d.ros no-lastname-given about 10 years ago

Shouldn´t be this also available for pageTS and userTS?
Afais it is not.

Actions #17

Updated by d.ros no-lastname-given about 10 years ago

UDPATE -> MY BAD. WORKS.

->

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="DIR:EXT:extname/Configuration/TS_CONFIG_PAGE" extensions="ts">');

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="DIR:EXT:extname/Configuration/TS_CONFIG_USER" extensions="ts">');
Actions #18

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF