Zum Inhalt springen

RTE aktivieren für Bildunterschrift

Erstellt am 16. Mai 2014 · Noch keine Antworten

Tags: TCA, Frage

namaste ·

Hallo,

ich würde gern den RTE aktivieren für das Feld "Beschreibung (Bildunterschrift)" im Inhaltselement "Bilder". Habe es mit folgendem Code versucht in der extTables.php (so wie ich "short" für tt_news aktiviert habe):

$GLOBALS['TCA']['tt_content']['columns']['description']['config']['softref'] = 'typolink_tag,images,email[subst],url';
$GLOBALS['TCA']['tt_content']['columns']['description']['config']['wizards'] = array(
	'_PADDING' => 4,
	'RTE' => array(
		'notNewRecords' => 1,
		'RTEonly' => 1,
		'type' => 'script',
		'title' => 'LLL:EXT:cms/locallang_ttc.php:bodytext.W.RTE',
		'icon' => 'wizard_rte2.gif',
		'script' => 'wizard_rte.php'
	)
);
foreach($GLOBALS['TCA']['tt_content']['types'] as $index => $conf) {
    $GLOBALS['TCA']['tt_content']['types'][$index]['showitem'] = preg_replace('/description([.^,])*,/', 'description;;;richtext:rte_transform[flag=rte_enabled|mode=ts];4-4-4,', $GLOBALS['TCA']['tt_content']['types'][$index]['showitem']);
}

Kann mir wer sagen was falsch ist oder ob das einfach überhaupt nicht geht...
DANKE!