Issue Bug Rejected

#110297Adding Flexform in TCA to existing element does not work

Robert Vock 07/27/26, 08:19 updated 08/16/26, 09:48

Description

With TYPO3 v14 the API for adding a Flexform using the ExtensionManagementUtility changed in #105830
Deprecation Entry 107047

Instead of calling addPiFlexFormValue , we now should call addPlugin with the $flexform parameter.
But when the CType entry already exists, the method returns before adding the Flexform.

This is means, we can not use the API when adding a Flexform to an already registered element.

We are using the b13/container to add container elements:

$containerConfiguration = new ContainerConfiguration($CType, $name, $description, $containerGrid);
$containerConfiguration->setIcon($iconIdentifier);
$this->containerRegistry->configureContainer($containerConfiguration);

ExtensionManagementUtility::addPlugin([$name, $CType, $iconIdentifier, $group], $flexform);

This does not add the flexform.

It’s possible, that this should not be regarded as a bug, because we can add the flexform configuration directly instead of relying on addPlugin:

$GLOBALS['TCA']['tt_content']['types'][$CType]['columnsOverrides']['pi_flexform']['config']['ds'] = $flexForm;

But the Documentation of adding Flexforms does not mention the adding of Flexform using columnsOverrides

Relevant lines in the code:
https://github.com/TYPO3/typo3/blob/v14.3.5/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php#L932-L937

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Georg Ringer commented and changed status New Rejected <span data-processor="relativetime" data-value="2026-08-16T09:48:14+00:00" > 08/16/26, 09:48 </span>

    hey!
    thanks for creating the issue. we don’t see that as a bug but I created an issue for docs, see https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/issues/6744.

    therefore closing the issue, hope you understand!