[TYPO3] Using a hook and rendering content in backend extension
Pascal Alich
pascal.alich at ppi.de
Thu May 18 09:58:03 CEST 2006
Sorry Rupert,
I've copied the string out of the Configuration module. The string in
the ext_localconf.php is correct!
Does anybody have further suggestions?
Pascal
Rupert Germann schrieb:
> 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