I am using powermail
and extending it with powermail_extended
and want to add a new action to what the frontend plugin is doing.
Extending the Controller is not the issue: It is overloaded via XCLASS:
config.tx_extbase.objects {
In2code\Powermail\Controller\FormController.className = In2code\PowermailExtended\Controller\FormController
}
But simply calling this action is not enough, because the prefences are stored in the frontend plugin in the backend. This frontend plugin is configured in ext_localconf.php
of powermail. How can a add a new action to this frontend plugin?
(Using TYPO3 7 LTS)
After reading the code of
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin
it is actually easier than I thought:Add the following code to
ext_localconf.php
of powermailextended:You can use it like this (also in
ext_localconf.php
):This should work in Typo3 7-9 (as the
configurePlugin
-Function didn't really change).