[TYPO3-english] RTE transformations for custom BE filed

Victor Livakovsky v-tyok at mail.ru
Wed Feb 11 09:45:57 CET 2009


>> I'm trying to make an extension, wich will use RTE for editing contents
>> of one of it's fileds.
>> At 'ext_tables.php' I have such lines:
>>
>> $tempColumns = Array (
>> ...
>> "tx_myext_text" =>$TCA['tt_content']['columns']['bodytext'],
>> ...
>> );
>>
>> t3lib_div::loadTCA("tt_content");
>> t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
>> ...
>> $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='tx_myext_url;;;;1-1-1,
>> tx_myext_text;;;richtext[paste|bold|image]:rte_transform[flag=rte_enabled|mode=css]';
>>     
>
> Try using defaultExtras.
>   
Changed code to:
...
"tx_myext_text" => Array (
      'label' => 'LLL:EXT:lang/locallang_general.php:LGL.caption',
      'config' => Array (
         'type' => 'text',
         'cols' => '30',
         'rows' => '3'
      ),
   'defaultExtras' => 'richtext[*]'
   ),
...
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='tx_myext_url;;;;1-1-1, 
tx_myext_text';

But still no transformation performed before saving to DB...

Anyway, thank you for an advice.



More information about the TYPO3-english mailing list