Bug #85825

Page TSconfig is not loaded when registering record and using relative paths

Added by Sergio Catalá about 1 year ago. Updated 8 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-08-13
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 8.7.20

After adding this code over Configuration/TCA/Overrides/pages.php to register my own page TSconfig:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'user_boilerplate',
'Configuration/TSconfig/page.tsconfig',
'Boilerplate Settings'
);

If the content of the file Configuration/TSconfig/page.tsconfig uses relative paths like this:

<INCLUDE_TYPOSCRIPT: source="DIR:./Page" extensions="tsconfig">

Then the TSconfig is not loaded in backend.

I've always used relative paths to include TypoScript.

If I change the content to an absolute path:

<INCLUDE_TYPOSCRIPT: source="DIR:EXT:user_boilerplate/Configuration/TSconfig/Page" extensions="tsconfig">

then the TSconfig is loaded.

Can anyone confirm this behaviour and fix that if it proceeds?

History

#1 Updated by Sergio Catalá 9 months ago

  • Description updated (diff)

#2 Updated by Sebastian Klein 9 months ago

I can confirm this. I'm adding Page TSconfig in the same way with registerPageTSConfigFile() inside Configuration/TCA/Overrides/pages.php.
As soon as I change INCLUDE_TYPOSCRIPT from an absolute path to a relative path, the TSconfig is no longer loaded.

#3 Updated by Sergio Catalá 8 months ago

Any update regarding this issue?

Also available in: Atom PDF