[TYPO3-dev] modify $TCA config array temporarily

Thomas Mammitzsch typo at pure.kicks-ass.net
Mon May 7 18:20:37 CEST 2007


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"?

thanks and regards,

Thomas




More information about the TYPO3-dev mailing list