Actions
Bug #94718
closedFallback for "default" page TSconfig has to be a string
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'] ?? [] ];
Updated by Gerrit Code Review over 3 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
Updated by Gerrit Code Review over 3 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
Updated by Oliver Bartsch over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f07e684ac611d9a5902e27a08f89f63100a91ff8.
Actions