$extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . ‘_accordion’;

// Clean up the Flexform fields in the backend a bit
$GLOBALS[‘TCA’][‘tt_content’][‘types’][‘list’][‘subtypes_excludelist’][$pluginSignature] = ‘layout,select_key,splash_layout’;
// Add own flexform stuff.
$GLOBALS[‘TCA’][‘tt_content’][‘types’][‘list’][‘subtypes_addlist’][$pluginSignature] = ‘pi_flexform’;

// Add custom Flexform fields
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, ‘FILE:EXT:’ . $_EXTKEY . ‘/Configuration/FlexForms/flexform.xml’);

Advertisements