Project

General

Profile

Actions

Bug #76979

closed

FormEngine should allow to set default-Values in new CType-Elements

Added by Nicolai Schirawski almost 8 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2016-07-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Create a new content-Element as Extension myext with ctype=myctype
In typo3conf/ext/myext/Configuration/TCA/Overrides/tt_content.php you can choose the Form-Elements being shown with CE "myctype" by setting
$GLOBALS['TCA']['tt_content']['types']['myctype']['showitem'] to the

Changing the behaviour of single form elements is only partly possible:

$GLOBALS['TCA']['tt_content']['types']['myctype'] = [
'columnsOverrides' => [
'imageheight' => [
'config' => [
'default' => 250,
'max' => 6,
]
],

Here, "max" will have an effect when using the field in BE, "default" will have no effect

Actions

Also available in: Atom PDF