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

Franz Holzinger franz at fholzinger.com
Thu Apr 13 09:58:03 CEST 2006


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





More information about the TYPO3-dev mailing list