Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 无插件扩展中的Flexforms_Typo3_Extbase - Fatal编程技术网

Typo3 无插件扩展中的Flexforms

Typo3 无插件扩展中的Flexforms,typo3,extbase,Typo3,Extbase,我有一个extbase扩展,它在PagetConfig上插入一个内容元素: NewContentElementWizard.ts: mod.wizards.newContentElement.wizardItems.common { elements { tz_linkrow { iconIdentifier = content-textpic title = LLL:

我有一个extbase扩展,它在PagetConfig上插入一个内容元素:

NewContentElementWizard.ts

mod.wizards.newContentElement.wizardItems.common {
        elements {
                tz_linkrow {
                    iconIdentifier = content-textpic
                    title = LLL:EXT:myext/Resources/Private/Language/locallang_db_new_content_el.xlf:wizards.newContentElement.myext_title
                    description = LLL:EXT:myext/Resources/Private/Language/locallang_db_new_content_el.xlf:wizards.newContentElement.myext_description
                    tt_content_defValues {
                        CType = myext_linkrow
                    }
                }
        }
        show := addToList(linkrow)
    }
是否有可能使用flexform? 如何插入它?

试试这个

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
        $_EXTKEY,
        'FILE:EXT:pf_spacer/Configuration/FlexForms/flexform_ds.xml',
        'tz_linkrow'
    );

    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', 'pi_flexform', 'myext_linkrow', 'replace:rowDescription');   

要通过get参数预先填充flexforms,还是要将flexforms添加到内容元素?我要将flexforms添加到内容元素