[TYPO3-dev] processDatamapClass issue

Brian Bendtsen bb at bellevuevej.dk
Thu Jun 19 12:55:48 CEST 2008


Hi

Im trying to utilize the processDatamap hook to move a news record once 
it has been created.

I have included this in my ext_localconf.php file:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] 
= 'EXT:wkleague/class.tx_wkleague_ttnewsPid.php:tx_wkleague_ttnewsPid';

And this in my php(class.tx_wkleague_ttnewsPid.php) file:

<?php
class tx_wkleague_ttnewsPid {
	function processDatamap_postProcessFieldArray($status, $table, $id, 
&$fieldArray, &$tcemain) {
	 if (($status=='new') && $table=='tt_news') {
	 $fieldArray['pid'] = 13;
	 }
	}
}
?>

But nothing happens, its like the funtion is not called at all - I have 
tried to insert som nonsence code to force an error but even that is not 
shown.

Any hints? Maybe on how to debug this?

/Brian




More information about the TYPO3-dev mailing list