Project

General

Profile

Actions

Bug #102193

open

Introduce a CONFIG: import for TypoScript imports

Added by Kevin Ditscheid 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2023-10-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Since TYPO3 12, it is not possible to load TypoScript files via backpathing anymore.
We have a use case, where we place TypoScript configuration files in the config-folder in the project root. These files can no longer be reached by @import since it is only accepting relative paths from the location of the script, that has the @import, an EXT: path, an absolute path with the full path of the system, as provided by Environment::getProjectPath, or a relative path inside the public folder (that can never be left because backpathing is forbidden).

It would be nice to have some key locations of the system as variables, the same way the EXT: prefix is working.
For example:
`CONFIG:my-config/additionalSetup.typoscript` would lead to `/path/to/project/config/my-config/additionalSetup.typoscript`.


Files

configPath.diff (926 Bytes) configPath.diff Kevin Ditscheid, 2023-10-18 08:46

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Actions

Also available in: Atom PDF