2017-02-12 97 views
0

我有一個extbase擴展其插入在PageTSconfig內容元素:Flexforms在擴展插件不

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) 
    } 

是否有使用柔性成型的可能性? 我如何插入它?

+0

? –

+0

我想添加flexforms到內容元素 –

回答

0

嘗試......

要通過預填拿到參數的flexforms或要flexforms添加到內容元素
\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');