Project

General

Profile

Actions

Bug #94029

closed

TCA columnsOverrides does not work for all labels

Added by Jens Hoppe over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2021-04-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #91450: TCA columnsOverrides don't work for labelClosed2020-05-20

Actions
Actions

Also available in: Atom PDF