自定义内容元素不在前端呈现

时间:2015-02-25 14:12:02

标签: typo3 typo3-6.2.x

需要有关未呈现的自定义内容元素的帮助。 这是我的错字:

tt_content.cat_button = FLUIDTEMPLATE
tt_content.cat_button {
    template = FILE
    template.file = EXT:so_product/Resources/Private/Templates/ContentELements/CategoryButton.html
    layoutRootPath = EXT:so_product/Resources/Private/Layouts/
}

即使我拼错了CategoryButton.html,也不会出现错误消息。那么我怎么知道是否找到了正确的模板呢?

如果删除行templatetemplate.file,我会收到消息"糟糕,找不到模板..."

我的模板只包含<p>Test</p>。我是否也需要部分和布局?

这是我使用的指南:http://docs.typo3.org/typo3cms/extensions/sitepackage/CustomContentElements/Index.html

日志中没有错误。

2 个答案:

答案 0 :(得分:1)

你的错别字是完全错误的。

检查TSRef http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Fluidtemplate/Index.html

tt_content.cat_button = FLUIDTEMPLATE
tt_content.cat_button {
   file = EXT:so_product/Resources/Private/Templates/ContentELements/CategoryButton.html
}

答案 1 :(得分:0)

简单的拼写错误:

ContentELements - &gt; ContentElements

TYPO3中没有显示错误消息的错误。

相关问题