Bug #86876

TCA columnsOverrides default

Added by Roman B├╝chler 11 days ago. Updated 11 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-11-07
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
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]
);

History

#1 Updated by Michael Stucki 11 days ago

  • Status changed from New to Closed

Wrong project!

#2 Updated by Michael Stucki 11 days ago

  • Project changed from forge.typo3.org to TYPO3 Core
  • Status changed from Closed to New
  • TYPO3 Version set to 9

Also available in: Atom PDF