Bug #85825
closedPage TSconfig is not loaded when registering record and using relative paths
0%
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?
Updated by Sebastian Klein about 6 years 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.
Updated by Georg Ringer over 4 years ago
- Status changed from New to Closed
closing this as duplicate of #79737
Updated by Georg Ringer over 4 years ago
- Is duplicate of Bug #79737: Registered pageTSconfig file won't allow relative paths for include added