I created the extension using the extension in typo3 version 7.6.2. Now I would like to add flexform to the Products extension for the detailed PID page. But I did my best to integrate flexform, but that didn't work.
Here is my code -
In ext_tables.php -
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Wxproducts.' . $_EXTKEY,
'Wxproducts',
'Products'
);
$pluginSignature = str_replace('_','','Wxproducts'.$_EXTKEY) . '_products';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_products.xml');
In the configuration / FlexForms / flexform _products.php -
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>Function</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<switchableControllerActions>
<TCEforms>
<label>Select function</label>
<config>
<type>select</type>
<items>
<numIndex index="0">
<numIndex index="0">List</numIndex>
<numIndex index="1">Products->list</numIndex>
</numIndex>
<numIndex index="1">
<numIndex index="0">Detail</numIndex>
<numIndex index="1">Products->show</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</switchableControllerActions>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
Does not work. I can’t understand what the problem is. Any idea!
Thank Advance
source
share