Project

General

Profile

Actions

Bug #89431

closed

Require JS config packages gets overruled

Added by Kay Wienöbst over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2019-10-16
Due date:
% Done:

100%

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

Description

Trying to add a 'highcharts' module to require js, i use the method 'addRequireJsConfiguration' of the 'PageRender' class.

Since the packages array is numerically indexed all existing entries at the same position get overridden by my definition. Or the other way around: an extension loaded after mine will override my packages if it adds packages itself.

here is my configuration:


$pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
$pageRenderer->addRequireJsConfiguration([
'packages' => [[
'name' => 'highcharts',
'main' => 'highcharts'
]],
'paths' => [
'highcharts' => 'https://code.highcharts.com'
],
]);

Actions

Also available in: Atom PDF