Typo3 键入3个自定义内容和2个标题
我正在尝试创建一个新的Typo3 键入3个自定义内容和2个标题,typo3,Typo3,我正在尝试创建一个新的内容元素(不确定它的名称是否正确),我希望实现类似的功能 'showitem' => ' --div--;Intro, --palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general; general, header, header, bodytext,
内容元素
(不确定它的名称是否正确),我希望实现类似的功能
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
header,
bodytext,
module_background_color,
--palette--;;cta,
标题1
标题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,
这两个都不起作用,我只能得到一个标题和一个正文,我对这个很陌生,不知何故我需要这样做
p、 我不能通过1个标题来完成,因为每个标题都有自己的样式。
谢谢一列只能使用一次 查看
标题
元素。在这里,您可以看到一个名为副标题的列
因此,下面应该添加另一个标题列:
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
subheader,
bodytext,
module_background_color,
--palette--;;cta,
这就完成了任务,但出于好奇,标题元素在哪里?当您转到Configuration
并在下拉列表中选择Table Configuration array
时,您可以转到“tt_content”并折叠此路径。现在您可以折叠类型
和标题
。现在您可以看到该元素使用了哪些列。您可以看到使用了调色板标题
。因此,您可以折叠部分选项板
和标题
,现在您可以看到包含了子标题
。您还可以通过在字段上单击鼠标右键来添加此内容元素,以在浏览器的检查器中获取字段名称。