Bug #65044
closed
Relative paths not respected when using ExtensionManagementUtility::addPageTSConfig
Added by Anonymous almost 10 years ago.
Updated almost 9 years ago.
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.
- 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()
- Sprint Focus deleted (
Stabilization Sprint)
Is this really a bug? I mean, did it work before?
Frank Nägler wrote:
Is this really a bug? I mean, did it work before?
For other TS files, yes. Since 6.2.
- 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.
The syntax correction resolves the problem.
- 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.
- Related to Bug #98126: Page caching does not work as expected on multi language sites added
- Related to deleted (Bug #98126: Page caching does not work as expected on multi language sites)
Also available in: Atom
PDF