[TYPO3-english] Powermail 2: receiver.overwrite.email overrides Template directory
roberto blanko
robertoblanko at gmail.com
Fri Jul 19 02:05:19 CEST 2013
G'day list,
I use a Powermail 2.0.9 form with a custom receiver set by TypoScript. My
receiver comes from another Extbase Extension, therefore my TypoScript to
set the receiver looks like this:
plugin.tx_powermail.settings.setup.receiver.overwrite.email = USER
plugin.tx_powermail.settings.setup.receiver.overwrite.email {
userFunc = tx_extbase_core_bootstrap->run
extensionName = MyExt
pluginName = Pi1
switchableControllerActions {
Powermail {
1 = receiver
}
}
}
This works well as far as the correct receiver is being set, however: Once
I try to submit the Powermail form I get the following error in the
frontend:
Template could not be found at
"/mysite/fileadmin/ext/my_ext/Templates/Forms/PowermailAll.html"
/mysite/fileadmin/ext/my_ext/Templates is the Template path for the
MyExt_Pi1 plugin set in another place in global TypoScript.
So somehow, it seems that Powermail now looks in the Template folder of the
TypoScript snippet rather than in its own. So by using an Extbase
dispatcher to set the receiver, I seem to overwrite the Template folder
(and probably more) of the Powermail plugin. How is that?
Is this a bug? Or am I doing anything wrong here? Btw. if I set the
receiver in the flexform by using
{f:cObject(typoscriptObjectPath:'lib.myExt.setReceiver')} I get the same
error in the frontend.
Any ideas would be very appreciated.
Roberto
More information about the TYPO3-english
mailing list