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