Bug #65044
closedRelative paths not respected when using ExtensionManagementUtility::addPageTSConfig
0%
Description
Adding INCLUDE_TYPOSCRIPT using \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig() in ext_localconf.php works correctly, but relative paths from the included file don't work.
e.g. in ext_localconf.php:
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' .$_EXTKEY. '/Configuration/TypoScript/ts_config.ts">');
If this file ts_config.ts contains the following code…
<INCLUDE_TYPOSCRIPT: source="./rte.ts">
…then TYPO3 cannot find the file rte.ts.
Updated by Josef F. Glatz (Old User) about 9 years ago
- Target version set to 7 LTS
- TYPO3 Version changed from 6.2 to 7
- PHP Version deleted (
5.6) - Sprint Focus set to Stabilization Sprint
Additional infos¶
- I could reproduce problem
- This problem exists in 6.2 AND 7.6-dev (master)
- Same problem, when including PageTSConfig via
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile()
Updated by Josef F. Glatz (Old User) about 9 years ago
- Sprint Focus deleted (
Stabilization Sprint)
Updated by Frank Nägler about 9 years ago
Is this really a bug? I mean, did it work before?
Updated by Anonymous about 9 years ago
Frank Nägler wrote:
Is this really a bug? I mean, did it work before?
For other TS files, yes. Since 6.2.
Updated by Frank Nägler almost 9 years ago
- Status changed from New to Needs Feedback
could it be, that you missed the FILE:
prefix?
I have tested with your description and it not work, but if you use <INCLUDE_TYPOSCRIPT: source="FILE:./rte.ts">
it work.
I think it is not a bug.
Updated by Anonymous almost 9 years ago
The syntax correction resolves the problem.
Updated by Riccardo De Contardi almost 9 years ago
- Status changed from Needs Feedback to Closed
So, I think it is safe to close this, thank you for your feedback.
here is also the official page about typoscript file inclusion: https://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/Syntax/Includes/Index.html
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Updated by Stefan Bürk almost 2 years ago
- Related to Bug #98126: Page caching does not work as expected on multi language sites added
Updated by Stefan Bürk almost 2 years ago
- Related to deleted (Bug #98126: Page caching does not work as expected on multi language sites)