Skip to content

Instantly share code, notes, and snippets.

@maddy2101
Last active July 30, 2021 12:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maddy2101/5764473 to your computer and use it in GitHub Desktop.
Save maddy2101/5764473 to your computer and use it in GitHub Desktop.
integrate Flexform in TYPO3 6.0/6.1 Plugin
<?php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'ObjectRandom',
'Object Trailer'
);
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_objectrandom';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForm/AbstractObject/Flexform.xml');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment