[TYPO3-dev] modify $TCA config array temporarily

Thomas Mammitzsch typo at pure.kicks-ass.net
Mon May 7 19:22:16 CEST 2007


Tapio Markula wrote:
> Thomas Mammitzsch kirjoitti:
>> hi list,
>>
>> i want to write a simple new Content Element. Because it only contains
>> an image and two text fields, i don't want to create a new db-table for
>> this. I want to use the tt_content table. For example i want the image
>> field to be stored in the image column of tt_content.
>> This is working as expected, but for example i want my content element
>> to have only 1 image(maxitems=1, minitems=1, size=1). if i modify $TCA
>> in that way, my changes apply also to the content element "image", but i
>> want my changes only for my new content element. is there a way to
>> modify $TCA only temporarily, e.g. if the current CType is
>> "mynewcontentelement"?
> 
> create a new content type - for example th_specialements defines own
> field set
new content type? maybe you can write an example? i hope you understood
my posting right. its not about displaying a certain field set, but how
a single field looks/which properties it has. But maybe i don't know
what you mean exactly.




More information about the TYPO3-dev mailing list