Project

General

Profile

Actions

Bug #89720

closed

TypoScript import from directory loads all files

Added by Mathias Brodala over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Category:
TypoScript
Target version:
Start date:
2019-11-21
Due date:
% Done:

100%

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

Description

The "documentation of the TypoScript @import feature"https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/TypoScriptSyntax/Syntax/Includes.html#includes claims that importing from a directory will automatically only load .typoscript files in that directory:

# The filename extension can be omitted and defaults to .typoscript
@import 'EXT:myproject/Configuration/TypoScript/'

However, this is not true. If a directory is imported like this, all files in that directory are imported as TypoScript and then parsed as such, leading to various errors in the Object Browser / Template Analyzer.

Here fileadmin/form_definitions is imported and a form definition exists in this directory:

The Template Analyzer then clearly reveals that the form definition has been imported, too:


Files

2019-11-21_10-29.png (167 KB) 2019-11-21_10-29.png Mathias Brodala, 2019-11-21 10:30
2019-11-21_10-30.png (181 KB) 2019-11-21_10-30.png Mathias Brodala, 2019-11-21 10:31
Actions

Also available in: Atom PDF