Issue Feature Rejected

#93431Introduce renderType 'default' to all TCA fields

Lina Wolf 02/04/21, 09:53 updated 06/11/24, 19:14

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 1

History 2

  1. Lina Wolf commented 02/04/21, 09:54

    The above was tested with TYPO3 11.0.0

    You can find above example in the T3Documentation branch of the extension styleguide:

    https://github.com/TYPO3-Documentation/styleguide

  2. Georg Ringer commented and changed status New Rejected 06/11/24, 19:14

    Hey Lina,

    I don’t see a need for more rendertypes, especially because we try to get rid of the type and do more specific types. therefore closing the issue – hope this is ok for you