Bug #89475

formEngine: overwriting field.label for inline records not possible

Added by Josef Glatz about 2 years ago. Updated about 1 month ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2019-10-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
pending-close
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Problem

in TYPO3 9.5 overwriting a label of a column of an inline record isn't possible anymore.

The following TCA/Overrides configuration examples are working until TYPO3 8.7 LTS and are broken in 9.5 LTS

Override per $GLOBALS['TCA']['tt_content']['types']['typeName']['columnsOverrides']['fieldName']['config']['overrideChildTca']['columns']['fieldName']['label'] = 'New Label';

@$GLOBALS['TCA']['tt_content']['types']['myCustomCType'] => [
    ['columnsOverrides']['image']['config']['overrideChildTca'] => [
        ['columns'] => [
            ['description']['label'] = 'New Label for sys_file_reference field "description"';
        ],
    ],
];

(The above example works in TYPO3 8.7.latest)

Override per $GLOBALS['TCA']['tt_content']['types']['typeName']['columnsOverrides']['fieldName']['config']['overrideChildTca']['types']['typeName']['columnsOverrides']['fieldName']['label'] = 'New Label';

@$GLOBALS['TCA']['tt_content']['types']['myCustomCType'] => [
    ['columnsOverrides']['image']['config']['overrideChildTca'] => [
        ['types'] => [
            ['0']['columnsOverrides']['description']['label'] = 'New Label for sys_file_reference field "description" for type 0 (default)';
        ],
    ],
];

(The above example works in TYPO3 8.7.latest)

#1

Updated by Josef Glatz about 2 years ago

  • Subject changed from formEngine overwriting field.label for inline records not possible to formEngine: overwriting field.label for inline records not possible
#2

Updated by Nikita Hovratov over 1 year ago

In my tests the first one works on both versions and current v10. The second one doesn't work on either versions. Is such a recursive columnsOverrides even possible?

#3

Updated by Oliver Hader 11 months ago

  • Tags changed from columnsOverrides, tca, ctypes, overrideChildTca to pending-close

Can this issue be closed?

#4

Updated by Philipp Kitzberger about 1 month ago

I've just tested both snippets and can confirm they both work with TYPO3 9.5.30

Also available in: Atom PDF