[TYPO3-english] RTE transformations for custom BE filed

Victor Livakovsky v-tyok at mail.ru
Wed Feb 11 08:15:30 CET 2009


Hello, list.

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]';

But the contents of 'tx_myext_text' fiield aren't transformed and stored 
in DB as is.
F.e., links are stored in this way: <a class="internal-link" 
href="http://www.domain.tld/?id=6" rtekeep="1">dcd</a>
Not like: <link 8 - internal-link>link</link>

Where am I wrong? And where this 'rtekeep' parameter is taken from?

Thank you in advance.



More information about the TYPO3-english mailing list