[TYPO3-english] flexforms addPiFlexFormValue() is ignored
Muriel le Pair
typo3 at strangefruit.nl
Tue Jun 11 11:44:30 CEST 2013
Op 11-06-13 11:09, Muriel le Pair schreef:
> Let me rephrase that question.
> How do you add a BE flexform to an extension because the method on this
> page http://wiki.typo3.org/Extension_Development,_using_Flexforms using
> addPiFlexFormValue() seems to be outdated?
I finally figured it out. If you use the extension builder you can't
just use $_EXTKEY to refer to the extension like this:
$extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_pi1';
$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/flexforms_be.xml');
But you somehow need to address the extension key as this:
$_EXTKEY + pluginname. Very weird.
Could someone please update the manual.
--
kind regards,
Muriel le Pair
More information about the TYPO3-english
mailing list