typo3 - 带有 2 个标题的 Typo3 自定义内容
问题描述
我正在尝试创建一个新content element
名称(不确定它是否是正确的名称)并且我想实现这样的目标
HEADER_1
HEADER_2
主体
在我的 tt_content.php 文件中,我有以下内容:
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
bodytext,
module_background_color,
--palette--;;cta,
我试图添加这样的东西
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
header,
bodytext,
module_background_color,
--palette--;;cta,
或这个
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
bodytext,
bodytext,
module_background_color,
--palette--;;cta,
两者都不起作用,我只能得到 1 个标题和 1 个正文,我对此很陌生,不知何故我需要这样做
ps 我不能通过 1 个标头来做到这一点,因为每个标头都有自己的样式。谢谢
解决方案
一栏只能使用一次!
看看header
元素。在这里您可以看到一个名为 的列subheader
。
所以下面应该添加另一个标题列:
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
subheader,
bodytext,
module_background_color,
--palette--;;cta,