[TYPO3-dev] Change TCA definition of field based on tt_content CType?

Franz Koch typo.removeformessage at fx-graefix.de
Thu Jul 2 14:52:24 CEST 2009


Hi Ingo,
>> Example:
>> I created a new CType that should render a 360° panorama scroller which
>> uses a image defined in "tt_content.image". Everything is fine that far,
>> but I like to change that field for this CType to maxItems=1 and size=1.
>>
>> Any chance to do that?
> 
> well as the TCA is pure PHP, you just have to find the right spot where 
> to place an if() and then manipulate the array...

I now wrote a little extension that hooks in TCEForms 
(preprocess...Hook). There I fetch pageTS and merge it into the TCA. So 
it's working quite fine now to manipulate TCA field definitions based on 
the "type".

-- 
kind regards,
Franz Koch

---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------




More information about the TYPO3-dev mailing list