Project

General

Profile

Actions

Feature #93794

closed

TCA field description is not configurable via TSconfig

Added by S P over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2021-03-22
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The description information for TCA fields ( $GLOBALS['TCA']['tx_my_table']['columns']['my_column']['description'] ) can not be changed via TSconfig.

Example use case: two different fluid templates (two domains) for the same CType. The element is containing an image. On one template/domain you need to give the editor an advice via description, on the other template you need not.

TCEFORM {
    tt_content {
        my_field {
            description = Hello
        }
    }
}

The description must be configurable just like the label.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #94424: TCA description not overridden with TCFORM configClosed2021-06-28

Actions
Actions #1

Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68561

Actions #2

Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68561

Actions #3

Updated by Oliver Bartsch over 3 years ago

Hi, thanks for bringing this up. I agree that there are some use-cases where overwriting the description via TSconfig makes sense.

But since this was never claimed to be possible nor documented anywhere and AFAIK no rule exists, which requires new TCA properties to be rewritable with TSconfig, this sounds more like a feature request to me. Do you agree?

Especially when looking at the patchset I pushed some minutes ago, only public API is used for this change. So, this could also be easily integrated in your custom extensions code when needed in a version below current master.

Actions #4

Updated by S P over 3 years ago

You are right, this is not documented nor implemented. I assumed this must work because the description feature is newer than TSconfig and I lightheartedly assumed that new core configuration features are configurable alongside existing core configuration schemes, which seems not to be the case. ;)

Yes, using a FormProvider makes this possible (and I certainly will make use of this as long it's not in core), but there are also setups/integrators that are not capable of PHP. It wals always a strength of TYPO3 to also satisfy these users.

Actions #5

Updated by Gerrit Code Review over 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68561

Actions #6

Updated by Oliver Bartsch over 3 years ago

  • Tracker changed from Bug to Feature
  • TYPO3 Version deleted (9)
Actions #7

Updated by Oliver Bartsch over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by Oliver Bartsch over 3 years ago

  • Related to Bug #94424: TCA description not overridden with TCFORM config added
Actions #10

Updated by Oliver Bartsch over 3 years ago

  • Related to deleted (Bug #94424: TCA description not overridden with TCFORM config)
Actions #11

Updated by Oliver Bartsch over 3 years ago

  • Has duplicate Bug #94424: TCA description not overridden with TCFORM config added
Actions

Also available in: Atom PDF