[TYPO3-dev] Call a function after adding a content_element
Michael Feinbier
mf at hdnet.de
Tue Feb 28 14:22:57 CET 2006
Hey Mario,
Mario Matzulla schrieb:
>
> You have to write a hook for tcemain_processdatamap.
>
> I did it like this:
>
> class tx_cal_tcemain_processdatamap {
> function processDatamap_postProcessFieldArray($status, $table, $id,
> &$fieldArray, &$this) {
> if ($table == 'tx_cal_event') {
> $row = t3lib_BEfunc::getRecord ($table, $id);
> //do what you want to do
> }
> }
> }
> }
Great! I found $GLOBALS
['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']!
I think this is what you mean?
It is by the way the same point where TemplaVoila adds it?s hooks.
I will play around a bit with it.
Thanks anyone!
Micha
More information about the TYPO3-dev
mailing list