#89902TCEFORM does not override child tca of an element
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
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 4
-
Leonie Philine commented <span data-processor="relativetime" data-value="2020-06-16T21:25:39+00:00" > 06/16/20, 21:25 </span>
-
S P commented <span data-processor="relativetime" data-value="2021-03-01T07:25:55+00:00" > 03/01/21, 07:25 </span>
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
overideChildTcais not in the allowed config keys to be altered by TSconfig (and probbaly the parser is missing the logic anyways). -
Philipp Kitzberger commented <span data-processor="relativetime" data-value="2023-10-05T11:27:11+00:00" > 10/05/23, 11:27 </span>
FYI, b13 wrote an extension for that years ago: https://github.com/b13/pagetsconfig
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-10-23T09:04:40+00:00" > 10/23/26, 09:04 </span>closing as this is an edgecase, use the mentioned extension
See also this workaround: https://blog.t3bootstrap.de/2020/04/typo3-overridechildtca-mittels-tsconfig/