我的问题是我无法在一个TCA中放置多个richTextEditor。这是TCA中的代码:
$GLOBALS['TCA']['tt_content']['types']['verfuegbarkeitsAbfrage'] = array(
'showitem' => ' --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext_formlabel;;richtext:rte_transform[flag=rte_enabled|mode=ts_css],
rte_enabled;LLL:EXT:cms/locallang_ttc.xlf:rte_enabled_formlabel,
bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext_formlabel;;richtext:rte_transform[flag=rte_enabled|mode=ts_css],
rte_enabled;LLL:EXT:cms/locallang_ttc.xlf:rte_enabled_formlabel,
mod022_NeckarComVerfuegbar,
mod022_nichtVerfuegbar,
--div--;Additional Classes,
--palette--;Margin;fred_marginclasses,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended
--div--;Gridelements,
tx_gridelements_container,
tx_gridelements_columns,
'
);
这是打开typo3-Backend时的输出:
答案 0 :(得分:1)
您无法在同一ctype中两次使用bodytext
字段。正确的方法是创建第二个字段,配置为“textfield”
ext_tables.sql
#
# Table structure for table 'tt_content'
#
CREATE TABLE tt_content (
bodytext2 text,
);
TCA字段:
'bodytext2' => array(
'label' => 'Text Field 2',
'config' => $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config'],
),
然后将字段添加到showitem
数组
为bodytext2
'columnsOverrides' => [
'bodytext2' => ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]'],
],