[TYPO3-dev] TCA UserFunction - saving multiple values

Simon Justesen simon at FJERNDETTEsimm.dk
Tue May 13 23:35:43 CEST 2008


Steffen Kamper skrev:
> "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 
> 
> 

Hey Steffen

Thank you very much - I'll check it out

Best regards
Simon




More information about the TYPO3-dev mailing list