[TYPO3-dev] hooking into Web->List save record

Markus bertheau mbertheau.typo3 at gmail.com
Thu Apr 13 13:48:22 CEST 2006


Thanks, I already did it thanks to the documentation Ingmar pointed me to.

Markus

2006/4/13, Franz Holzinger <franz at fholzinger.com>:
> Hello
>
> > I'm developing an extension with two record types: notes and
> > categories. Categories are organized as a tree (with a parent_uid in
> > the categories table). Notes can be in one or more categories. Now
> > upon every save of a notes record I want to add all child categories
> > of the selected category to the record. Is that doable in typo3 3.8?
>
> put this line into your ext_localconf.php file.
>
> // Hooks for datamap procesing
> $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][]
> = 'EXT:yourextkey/class.tx_yourextkey_dmhooks.php:tx_yourextkey_dmhooks';
>
> Where you have a method
> function processDatamap_afterDatabaseOperations
>
> You can get an example file from Thomas Hempel who has developed
> something similar for the Commerce extension.
>
>
> - Franz
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>




More information about the TYPO3-dev mailing list