0

我想在更改 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');

})

它出什么问题了?

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

4

1 回答 1

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');

于 2018-08-31T06:56:31.697 回答