Bug #77219
closedRegistering of static Page TSconfig files does not render relative paths correctly.
0%
Description
I have a sitepackage extension. In that I have a Page.ts file. It includes the subfolder Page like above. Works great. Now I have my overwrite sitepackage extension. Here in the TSconfig folder I have a Page.ts as well. In that I want to include the TSconfig of the main sitepackage and then overwrite it with site-specific TSconfig. Folder structure is identical. So in the overwrite-extension I was going to do it like this:
# First include from base sitepackage <INCLUDE_TYPOSCRIPT: source="FILE:EXT:template/Configuration/TSconfig/Page.ts"> # Now overwrite for current site. <INCLUDE_TYPOSCRIPT: source="DIR:./Page">
The TSconfig gets included in TCA/Overrides/pages.php of the overwrite-extension like this:
<?php \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile( 'template_site1', 'Configuration/TSconfig/Page.ts', 'Page TSconfig' );
As described here: https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/Field/Index.html#register-static-page-tsconfig-files
The include of the absolute path works fine:
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:template/Configuration/TSconfig/Page.ts">`
The relative path isn't included:
<INCLUDE_TYPOSCRIPT: source="DIR:./Page">
Updated by Riccardo De Contardi about 7 years ago
I am looking at the documentation: https://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/Syntax/Includes/Index.html#includes
it seems that relative paths are allowed for FILES but not mentioned for DIR. Is it correct? Or am I wrong?
Updated by Riccardo De Contardi almost 6 years ago
- Status changed from New to Needs Feedback
Hi, the relative paths should work for both DIR
and FILE
; May I ask you to write in more detail your configuration and your goal?
From what I have read, you have the following scenario:
1) two "site extension" a main one called template
and an "overwrite" that I will call template2
2) load the main TSConfig from template
with <INCLUDE_TYPOSCRIPT: source="DIR:EXT:template/Configuration/TSconfig/Page">
3) load the remaining from template2
using a relative path
Is it correct? Can you add a step-by-step guide about how to reproduce your issue? Thank you!
Updated by Riccardo De Contardi over 5 years ago
- Status changed from Needs Feedback to Closed
No feedback since the last 90 days => closing this issue.
If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.
Thank you and best regards