[TYPO3] Using a hook and rendering content in backend extension

Rupert Germann rupi at gmx.li
Thu May 18 09:35:17 CEST 2006


Pascal Alich wrote:

> Hey,
> I am writing an extension for tt_news that allows the user to send the
> news as email, e.g. for urgent news. I'd like to realize it with a hook
> to "processDatamapClass" which is provided by tcemain.
> Actually, I've two problems. The first one is that my method is not
> called by the Typo3 framework. That is my method:
> 
>    function processDatamap_postProcessFieldArray ($status, $table, $id,
> &$fieldArray, &$pObj) {
>       mail('pascal.alich at ppi.de','test', $temp, 'test');
>    }
> 
> That's my entry in ext_localconf.php:
> 
> TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class']['t3lib_tcemain']['php'
['processDatamapClass'][]
>   =
>   'EXT:ppi_news_email/class.ppi_news_email_main.php:ppi_news_email_main';


this will not work. should be:
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php'
['processDatamapClass'][] =
...

greets
rupert




More information about the TYPO3-english mailing list