Project

General

Profile

Actions

Bug #98192

closed

typo3cms/backend tsconfig configuration TCEFORM.[tableName].[fieldName].types.[typeName].label does not work with string keys

Added by Alexander Köberl about 2 years ago. Updated about 2 years ago.

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

98192.png (62.2 KB) 98192.png Oliver Hader, 2022-08-23 15:08
Actions #1

Updated by Oliver Hader about 2 years ago

  • File 98192.png 98192.png added
  • Status changed from New to Needs Feedback
  • Tags set to pending-close

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.

Actions #2

Updated by Alexander Köberl about 2 years ago

  • % Done changed from 0 to 100
Actions #3

Updated by Alexander Köberl about 2 years ago

Thats it. Thanks for your help. My mistake.

Actions #4

Updated by Oliver Hader about 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

Also available in: Atom PDF