Issue Bug Closed

#94029TCA columnsOverrides does not work for all labels

Jens Hoppe 04/30/21, 07:48 updated 09/22/23, 18:58

Description

The bug probably relates to the closed issue #91450.

columnsOverrides works for labels of fields that were defined in TCA with tablename.fieldname.label. It does not seem to work if the field was added with an inidividual label in showitem like fieldname;label.

I tested this in 10.4.15 with CType = menu_pages. The field pages is defined in frontend/Configuration/TCA/tt_content.php with the label LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.startingpoint. It is later added to menu_pages.showitem with a different label though: pages;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:pages.ALT.menu_formlabel. The following does not work:

$GLOBALS['TCA']['tt_content']['types']['menu_pages']['columnsOverrides'] = [
    'pages' => [
        'label' => 'myBrilliantLabel',
    ],
];

An example that does work for the same CType is this:

$GLOBALS['TCA']['tt_content']['types']['menu_pages']['columnsOverrides'] = [
    'rowDescription' => [
        'label' => 'myBrilliantLabel'
    ],
];

The only difference seems to be that rowDescription does not get an individual label in menu_pages.showitem.

Reviews 0

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