[TYPO3-dev] modify $TCA config array temporarily
Tapio Markula
tapio.markula at atwebteam.com
Mon May 7 18:59:22 CEST 2007
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
More information about the TYPO3-dev
mailing list