[TYPO3-dev] Plugin Config Flexform
Roman Pretory
roman at pretory.at
Thu Mar 17 14:30:38 CET 2016
in one chase by try and look whats happend, I put this (Thanks to Bernd & Michael)
on the end of the ext_tables.php
$extensionName = strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY));
$pluginName = strtolower('Checkdns');
$pluginSignature = $extensionName.'_'.$pluginName;
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:'.$_EXTKEY . '/Configuration/FlexForms/ff_check_dns.xml');
the flexform is show and seems to work, (without the langtranslate)
but ist looks SENSELESS to replace working extensions working with T3 V6, V7+compatibility6
with one running only with v7 because this code marked as old way??
I search for the Overrides/tt_content.php function should look like this,without the error in it. :-)
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_checkdns';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:'.$_EXTKEY.'/Configuration/FlexForms/ff_check_dns.xml');
More information about the TYPO3-dev
mailing list