[TYPO3-dev] TCA UserFunction - saving multiple values
Steffen Kamper
steffen at sk-typo3.de
Tue May 13 23:26:01 CEST 2008
"Simon Justesen" <simon at FJERNDETTEsimm.dk> schrieb im Newsbeitrag
news:mailman.1.1210713472.616.typo3-dev at lists.netfielders.de...
> Hey fellow TYPO3 users
>
> I've made a custom $TCA userfunction. I can easily save single values to a
> table field, but how can I add some preprocessing before writing the value
> to the database?
>
> I have a productfield and a price-field which I have to save to the same
> database field in the this way: product;price so that I can explode() it
> later.
>
> Thanks
> Simon
Hi,
use one of the hooks in tcemain, eg processDatamapClass or
processDatamap_preProcessFieldArray to do what ever you want.
vg Steffen
More information about the TYPO3-dev
mailing list