Project

General

Profile

Actions

Feature #93431

closed

Introduce renderType 'default' to all TCA fields

Added by Lina Wolf over 3 years ago. Updated 10 days ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-02-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Most TCA column types have rendering types. There is - in most cases a default rendering type called. However when switching to this default type the the empty string '' has to be used while neither 'default' nor 'Default' is allowed. As the rendering type is also called "Default" in the official documentation I would suggest to introduce it and to accept both the empty string and the string 'default' for the default rendering type.

 'types' => [
        'withOverriddenColumns' => [
            'showitem' => 'record_type, title, color, text_1',
            'columnsOverrides' => [
                'color' => [
                    'config' => [
                        'renderType' => 'default',
                        'readOnly' => true,
                        'size' => 10,
                    ],
                ],
]

I would expect the output to be the same like

 'types' => [
        'withOverriddenColumns' => [
            'showitem' => 'record_type, title, color, text_1',
            'columnsOverrides' => [
                'color' => [
                    'config' => [
                        'renderType' => '',
                        'readOnly' => true,
                        'size' => 10,
                    ],
                ],
]

However this produces an error, see attached Screen


Files

renderTypeDefaultError.png (2.66 KB) renderTypeDefaultError.png Lina Wolf, 2021-02-04 09:53
Actions

Also available in: Atom PDF