Feature #93794
closedTCA field description is not configurable via TSconfig
100%
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.
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
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
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.
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.
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
Updated by Oliver Bartsch over 3 years ago
- Tracker changed from Bug to Feature
- TYPO3 Version deleted (
9)
Updated by Oliver Bartsch over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ee24ba6221902acc65f7c32d4f8b047e50a887a5.
Updated by Oliver Bartsch over 3 years ago
- Related to Bug #94424: TCA description not overridden with TCFORM config added
Updated by Oliver Bartsch over 3 years ago
- Related to deleted (Bug #94424: TCA description not overridden with TCFORM config)
Updated by Oliver Bartsch over 3 years ago
- Has duplicate Bug #94424: TCA description not overridden with TCFORM config added