Hallo ich habe unter Typo3 6.1.5 die erste Extension mittels Fluid (Extension_Builder) erstellt.
Nun würde ich gerne auf der Startseite eine spezielle Action im Plugin einfügen, habe aber kein Dropdownfeld zur Auswahl der Action im Plugin.
Folgendes habe ich gemacht:
ext_localconf.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'CGS.' . $_EXTKEY,
'Cpgbusjourneys',
array(
'Journeys' => 'list, show, book, toppush, startselect',
),
// non-cacheable actions
array(
'Journeys' => 'list, book, toppush, startselect',
)
);
ext_tables.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'Cpgbusjourneys',
'cpg_bus_journeys'
);
# Flexform selection
$pluginSignature = str_replace('_','',$_EXTKEY) . '_register';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform.xml');
und /Configuration/FlexForms/flexform.xml:
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>Verhalten</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<switchableControllerActions>
<TCEforms>
<label>Standardaktion des Plugins</label>
<config>
<type>select</type>
<items>
<numIndex index="0">
<numIndex index="0">Listenansicht</numIndex>
<numIndex index="1">Journeys->list</numIndex>
</numIndex>
<numIndex index="1">
<numIndex index="0">Einzelansicht</numIndex>
<numIndex index="1">Journeys->show;Journeys->edit;Journeys->update</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</switchableControllerActions>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
Was habe ich falsch gemacht?
LG und Danke!