Project

General

Profile

Actions

Bug #94718

closed

Fallback for "default" page TSconfig has to be a string

Added by Oliver Bartsch almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Category:
TypoScript
Target version:
-
Start date:
2021-08-05
Due date:
% Done:

100%

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

Description

The value of a TSconfig entry in the TSconfig array of ModifyLoadedPageTsConfigEvent is the TSconfig string.

Therefore it should be possible to extend e.g. the default TSconfig (read from $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPageTSconfig']) in this way:

$tsConfig = $event->getTsConfig();
$tsConfig['default'] .= 'my.custom.config';
$event->setTsConfig($tsConfig);

This however may fail due to the fallback, set in PageTsConfigLoader->collect:

$tsData = [
    'default' => $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPageTSconfig'] ?? []
];
Actions

Also available in: Atom PDF