I made a new extension in extension builder (a basic 4 model extension with no custom work in it, the only thing slightly fancy it does is extend the fe_users table) and installed it and made a page with the plugin and when I view the page I get a blank area where the plugin should appear - not a whole blank page just the part where the plugin should appear. I put some echo __FUNCTION__.__LINE__;die;
lines in all the listActions so if I was hitting any of them I'd at least know which I was hitting. But I see no echo lines and I clearly never hit a die; so I guess my extension is not hitting any action, maybe because I have to specify one as the default. My extension has 4 models. How do I specify what action gets called? I am using typo3 v4.5.30 with extbase.
Thanks
PS: my ext_localconf file looks like so:
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'mycore',
array(
'Player' => 'list, show, new, create, edit, update, delete',
'Hall' => 'list, show, new, create, edit, update, delete',
'Hallplayers' => 'list, show, new, create, edit, update, delete',
'Hallvisits' => 'list, show, new, create, edit, update, delete',
),
// non-cacheable actions
array(
'Player' => 'create, update, delete',
'Hall' => 'create, update, delete',
'Hallplayers' => 'create, update, delete',
'Hallvisits' => 'create, update, delete',
)
);
To answer your initial question: The first action defined in your plugin is automatic the default action. I never use 2 Actioncontroller in 1 plugin (Im not sure if that is even possible). If I have to change from 1 actioncontroller to another I use Fluid-Link:
<f:link.action pluginName="myOtherPlugin" pageUid="ThePageIDwhereThePluginShallBeCalled" action="TheActionOfThePlugin" controller="Controllername" arguments="{Modelname : Modelobject}">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.