Bug #89902
openTCEFORM does not override child tca of an element
0%
Description
Hi,
Overriding child tca of an element via TsConfig is not working. Methods *PageTsConfig() in the TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider do not validate the parent field configuration which is available in $result.
Here is a sample of the current code:
protected function removeItemsByKeepItemsPageTsConfig(array $result, $fieldName, array $items) { $table = $result['tableName']; if (!isset($result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems']) || !is_string($result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems']) ) { return $items; } ...
Regards
CJ
Updated by Leonie Philine about 4 years ago
See also this workaround: https://blog.t3bootstrap.de/2020/04/typo3-overridechildtca-mittels-tsconfig/
Updated by Stefan P over 3 years ago
I am missing this as well. However, this seems to be on purpose (so no "bug"):
https://docs.typo3.org/m/typo3/reference-tsconfig/9.5/en-us/PageTsconfig/TceForm.html#config
overideChildTca
is not in the allowed config keys to be altered by TSconfig (and probbaly the parser is missing the logic anyways).
Updated by Philipp Kitzberger 10 months ago
FYI, b13 wrote an extension for that years ago: https://github.com/b13/pagetsconfig