[TYPO3-dev] new content element in new table?

Tapio Markula tapio.markula at atwebteam.com
Mon May 14 20:12:06 CEST 2007


Thomas Mammitzsch kirjoitti:
> Martin Ficzel wrote:
>> Thomas Mammitzsch schrieb:
>>
>>> ok, thank you, nice tip. i hoped there is a simpler way than render the
>>> whole form and html with an own function. some threads before i thought
>>> i can use the tt_content-table and just modify the config of the columns
>>> in $TCA, but i didn't find out how to change it for my content element
>>> without changing all the other content elements. I'm wondering that only
>>> so a few people seem to work in that direction.
>> u can use the "pi_flexform" field to provide the settings for your
>> extension. adding extra fields to the tt_content table is a bad idea if
>> you have no special need to do so.
>>
>> regards Martin
> i didn't want to add extra fields to tt_content - just use the existing
> ones. But use a different $TCA for tt_content in that case...

that is possible.
If you have you own content type you can define for it what fields to 
use, for example:

$TCA['tt_content']['types']['my_content_type']['showitem']='CType;;4;button;1-1-1, 
header;;3;;2-2-2, short_text;;;;1-1-1;, 
bodytext;;9;richtext:rte_transform[flag=rte_enabled|mode=ts_css];3-3-3, 
rte_enabled, 
text_properties,description;;;;1-1-1;,editor_notes;;;;1-1-1, --div--, 
image;;;;4-4-4, imageorient;;2, imagewidth;;13,
			--palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7,
			--palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11,
			imagecaption;;5,
			altText;;;;1-1-1,titleText,longdescURL';




More information about the TYPO3-dev mailing list