Project

General

Profile

Actions

Bug #94718

closed

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

Added by Oliver Bartsch over 2 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 #1

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70209

Actions #2

Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70216

Actions #3

Updated by Oliver Bartsch over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF