php - Plugin options from FlexForms in TYPO3 -


i built extension using extension builder , added plugin this. add plugin options @ time of adding plugin page, determine controller action page. have 2 pages list , search, should able give plugin option choose myextcontroller->list list page , myextcontroller->search search page.

so far did this:

in ext_tables.php :

$pluginsignature = str_replace('_','',$_extkey) . 'myext'; $tca['tt_content']['types']['list']['subtypes_addlist'][$pluginsignature] = 'pi_flexform'; \typo3\cms\core\utility\extensionmanagementutility::addpiflexformvalue($pluginsignature, 'file:ext:' . $_extkey . '/configuration/flexforms/flexform_myext.xml'); 

my flexform in configuration/flexforms:

<t3datastructure>     <sheets>         <sdef>             <root>                 <tceforms>                     <sheettitle>function</sheettitle>                 </tceforms>                 <type>array</type>                 <el>                     <switchablecontrolleractions>                         <tceforms>                             <label>select function</label>                             <config>                                 <type>select</type>                                 <items>                                     <numindex index="0">                                         <numindex index="0">list</numindex>                                         <numindex index="1">myextcontroller->list</numindex>                                     </numindex>                                     <numindex index="1">                                         <numindex index="0">search</numindex>                                         <numindex index="1">myextcontroller->search</numindex>                                     </numindex>                                 </items>                             </config>                         </tceforms>                     </switchablecontrolleractions>                 </el>             </root>         </sdef>     </sheets> </t3datastructure> 

somehow, think i'm missing something. not work. doing right ? not see plugin options.

you missed underscore in $pluginsignature should be:

$pluginsignature = str_replace('_','',$_extkey) . '_myext' //                                                 ^-here 

also keep in mind '_myext' should lower cased name of plugin (no ext) (that string register second argument of registerplugin method)


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -