TYPO3扩展flexform查找未文件

时间:2018-08-30 08:41:53

标签: typo3-8.x flexform

我想在扩展flexform的同时扩展扩展名。但是,我无法访问我的Flexform。

call_user_func(

    function($extKey) {

 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['test_pi1'] = 'pi_flexform';

 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('test_pi1','FILE:EXT:test2/Configuration/FlexForm/test.xml');

})

怎么了?

该文件没有缺陷,因为我更改了文本条目以查看其是否有效。

1 个答案:

答案 0 :(得分:0)

您的扩展名正确的$ _EXTKEY是什么?尝试

$pluginSignature = str_replace('_', '', $_EXTKEY) . '_pi1'; $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForm/test.xml');