[TYPO3-english] Use Powermail 2.x in your own ext.
Jan Bednarik
info at bednarik.org
Wed Oct 29 21:19:10 CET 2014
Hi,
since Powermail is Extbase ext, you need to include it like this:
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
pluginName = Pi1
extensionName = Powermail
...
}
Regards
Jan
Dne 28. 10. 2014 22:50, Sergey Alexandrov napsal(a):
> Hello guys,
>
> I'm trying to "embed" Powermail form(s) into my extension(s). So far,
> tried 2 ways, but unfortunately, can't get it work.
> Hope someone has/had experience with this.
>
> So, the first try was to embed the form with my ext. TS like this
> (template mark):
>
> EXT_FORM < plugin.powermail(also tried plugin.tx_powermail)
> EXT_FORM {
> settings.setup.main.pid = 14(PID of the folder with all mail forms)
> settings.setup.main.form = 1 (UID of the particular Powermail
> form)
> }
>
>
> This doesn't work. OK. Then tried to create a form inside an extension
> (BTW, it's old pi-based ext., ported to 6.2)
>
> echo '~'.t3lib_extMgm::isLoaded('powermail');<--- Loaded!
> $cObjType = $GLOBALS['TSFE']->tmpl->setup['plugin.']['powermail'];
> <--- this actually !isset() at all
> $pconf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_powermail.'];
> $pconf['settings.']['setup.']['main.']['pid'] = 14;
> $pconf['settings.']['setup.']['main.']['form'] = 1;
> // $pconf is good and a lot of default values populated, which is good
> $cObj = t3lib_div::makeInstance('tslib_cObj');
> $cObj->start();
> echo $content = $cObj->cObjGetSingle($cObjType, $pconf);<--- returns
> empty string :(
> // because $cObjType is not set (see above), tried manually set to
> USER, USER_INT ... nope. Doesn't work either
>
> Stuck. Any help please?
>
> Thank you,
> Sergey
>
>
>
More information about the TYPO3-english
mailing list