Feature #93794

TCA field description is not configurable via TSconfig

Added by Stefan P 6 months ago. Updated 5 months 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

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

Actions
#1

Updated by Gerrit Code Review 6 months 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

#2

Updated by Gerrit Code Review 6 months 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

#3

Updated by Oliver Bartsch 6 months 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.

#4

Updated by Stefan P 6 months 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.

#5

Updated by Gerrit Code Review 6 months 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

#6

Updated by Oliver Bartsch 6 months ago

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

Updated by Oliver Bartsch 6 months ago

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

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
#9

Updated by Oliver Bartsch 3 months ago

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

Updated by Oliver Bartsch 3 months ago

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

Updated by Oliver Bartsch 3 months ago

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

Also available in: Atom PDF