Project

General

Profile

Actions

Bug #86876

closed

TCA columnsOverrides ignores default value

Added by Roman Büchler over 5 years ago. Updated almost 4 years ago.

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]
);

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #76661: Suggest Wizard ajax response ignores columnsOverridesClosed2016-06-16

Actions
Related to TYPO3 Core - Bug #99381: TCA columnsOverrides overrides default values set via defValsResolved2022-12-15

Actions
Actions

Also available in: Atom PDF