TCA: merge in settings.yaml does not work
TCA files are overriden after saving although 'TCA: merge' is configured.
'TCA: keep' works. 'Templates: keep' also.
Hint that TCA is not mergeable
Releases: master, 7.6
Reviewed-by: Markus Klein <firstname.lastname@example.org>
Reviewed-by: Nico de Haen <email@example.com>
Tested-by: Nico de Haen <firstname.lastname@example.org>
#1 Updated by Stefan Neufeind almost 4 years ago
- Status changed from New to Needs Feedback
The "new style" TCA-files contain a return-statement. As such they don't contain a merge-marker like ext_localconf.php or so do when you enable merging and save again.
Workaround for adjusting TCA: In the same extension where you have your Configuration/TCA/ simply place additional settings under Configuration/TCA/Overrides/.
#3 Updated by Frank Frewer over 3 years ago
TCA-files still contain a merge-marker if you set
TCA: merge in settings.yaml (v7.6.0)
## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
But of course the merge-marker doesn't work because of the return-statement.
So the merge-marker should not appear in this context, the settings.yaml should contain a hint on this fact, and the documentation too (https://docs.typo3.org/typo3cms/extensions/extension_builder/Configuration/Index.html), including the workaround.
Thanks for that in advance ;-)