Project

General

Profile

Actions

Bug #65044

closed

Relative paths not respected when using ExtensionManagementUtility::addPageTSConfig

Added by Anonymous over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2015-02-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Josef F. Glatz (Old User) over 8 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()
Actions #2

Updated by Josef F. Glatz (Old User) over 8 years ago

  • Sprint Focus deleted (Stabilization Sprint)
Actions #3

Updated by Frank Nägler over 8 years ago

Is this really a bug? I mean, did it work before?

Actions #4

Updated by Anonymous over 8 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.

Actions #5

Updated by Frank Nägler over 8 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.

Actions #6

Updated by Anonymous over 8 years ago

The syntax correction resolves the problem.

Actions #7

Updated by Riccardo De Contardi over 8 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.

Actions #8

Updated by Stefan Bürk over 1 year ago

  • Related to Bug #98126: Page caching does not work as expected on multi language sites added
Actions #9

Updated by Stefan Bürk over 1 year ago

  • Related to deleted (Bug #98126: Page caching does not work as expected on multi language sites)
Actions

Also available in: Atom PDF