[TYPO3-english] saving predefined irre values on save
Xavier Perseguers
typo3 at perseguers.ch
Sat May 29 01:30:48 CEST 2010
Hi,
> I am wondering if it is possible to save a set of predefined irre
> records at saving an object,
>
> To illustrate a house as object, on save it should automatically save a
> predfined set of value objects like number of rooms, number of doors,
> number of windows and the like. After that first initial save it should
> be possible to override the default values to correct the default number
> (which in the case would be 1).
>
> If this possible, how could I construct the TCA to handle this correctly?
Without playing with TCA, you could register a hook in
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']
and add the default records there.
--
Xavier Perseguers
http://xavier.perseguers.ch/en
More information about the TYPO3-english
mailing list