Actions
Bug #86876
closedTCA columnsOverrides ignores default value
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2018-11-07
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Defining a differnet default value for a field in the 'types' array doesn't work.
For example it would be useful to set the default frame for a content element of type gridelement_pi1 to none. To do so the TCA might be overriden as following:
File: ext/myplugin/Configuration/TCA/Overrides/gridelements.php
File content:
$columnsOverrides = [];
$columnsOverrides['frame_class']['config'] = [
'default' => 'none',
];
$GLOBALS['TCA']['tt_content']['types']['gridelements_pi1'] = array_merge(
$GLOBALS['TCA']['tt_content']['types']['gridelements_pi1'],
['columnsOverrides' => $columnsOverrides]
);
Actions