Select Git revision
Overrides
-
-
- Open in your IDE
- Download source code
- Download this directory
Christian Kuhn
authored
This patch adds a layer to the "load and create final TCA" process. When "base" TCA files in 'Configuration/TCA' define 'ctrl' capabilities like 'languageField=sys_language_uid', these fields need according 'columns' definitions. The core now adds default definitions of such columns if they do not exist after loading 'Configuration/TCA' files, and before loading 'Configuration/TCA/Overrides' files. Developers no longer need to define such columns and can rely on core adding them, if a capability is enabled in 'ctrl'. There are two advantages: First, it adds a level of control for these columns away from extensions to the core, which is good for future development in this area. Secondly, extension developers no longer need to take care of nasty configuration details of these columns and can remove lots of boilerplace TCA definitions that had to be maintained manually before. The patch shows this: About 6000 lines of TCA definitions can be removed. These colummn are now handled automatically: * ['ctrl']['enablecolumns']['disabled'] - typically set to "disabled" or "hidden" * ['ctrl']['enablecolumns']['starttime'] - typically set to "starttime" * ['ctrl']['enablecolumns']['endtime'] - typically set to "endtime" * ['ctrl']['enablecolumns']['fe_group'] - typically set to "fe_group" * ['ctrl']['editlock'] - used less often, typically set to "editlock" * ['ctrl']['descriptionColumn'] - typically set to "description" * ['ctrl']['languageField'] - typically set to "sys_language_uid" * ['ctrl']['transOrigPointerField'] - typically set to "l10n_parent" * ['ctrl']['transOrigDiffSourceField'] - typically set to "l10n_diffsource" * ['ctrl']['translationSource'] - typically set to "l10n_source" In the backend, this patch streamlines a couple of details, by for instance using the same / default label in all situations. There are a couple of specific overrides to deviate from defaults now defined by core. For example, new "pages" should be disabled=1, but the default "disabled" columns definition does not set disabled=1. "pages" thus overrides the core default in a Configuration/TCA/Overrides file. A couple of tests have a dependency to the order of columns in TCA, and need minor as well. Some code in TcaPreparation is now obsolete, together with a functional test. Resolves: #104311 Related: #104288 Related: #88057 Releases: main Change-Id: I155a96163d75cf6692ae23ea96656285895d1c36 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85095 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name | Last commit | Last update |
---|---|---|
.. |