Actions
Bug #98192
closedtypo3cms/backend tsconfig configuration TCEFORM.[tableName].[fieldName].types.[typeName].label does not work with string keys
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-08-23
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
pending-close
Complexity:
Is Regression:
Sprint Focus:
Description
TCEFORM can change a lable with this:
TCEFORM.[tableName].[fieldName].types.[typeName].label
so, see TCA at:
tt_content.columns.table_class.config.items. 0 0 = LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.table_class.default 1 = 1 0 = LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.table_class.striped 1 = striped 2 0 = LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.table_class.bordered 1 = bordered
here are string keys ("bordered", "striped") instead of numeric keys.
setting a new label for this string keys with "TCEFORM.[tableName].[fieldName].types.[typeName].label" does not work here.
TCEFORM.tt_content.table_class.types.striped.label = Renamed one TCEFORM.tt_content.table_class.types.bordered.label = Renamed two
Files
Updated by Oliver Hader over 2 years ago
I guess the term "label" is misleading here, I guess you're looking for "altLabels"
(see https://docs.typo3.org/m/typo3/reference-tsconfig/main/en-us/PageTsconfig/TceForm.html#altlabels).
TCEFORM.tt_content.table_class.label = RENAMED Table style TCEFORM.tt_content.table_class.altLabels.striped = RENAMED Striped
The TSconfig settings above lead to the following in backend forms.
Updated by Alexander Köberl over 2 years ago
Thats it. Thanks for your help. My mistake.
Updated by Oliver Hader over 2 years ago
- Status changed from Needs Feedback to Closed
Don't worry... I'm closing this issue, since it seems not seem that any change is required.
Actions