防止渲染TYPO3 FCE的默认标题

时间:2012-10-11 07:01:42

标签: typo3 typoscript templavoila

在FCE中,我不想使用默认的TYPO3元素,如标题,链接等。所以我使用以下ts配置隐藏它:

    TCEFORM.tt_content {
    header.types.templavoila_pi1.disabled = 1
    header_position.types.templavoila_pi1.disabled = 1
    header_link.types.templavoila_pi1.disabled = 1
    header_layout.types.templavoila_pi1.disabled = 1
    date.types.templavoila_pi1.disabled = 1
    subheader.types.templavoila_pi1.disabled = 1
    }

此后不显示此字段。但是当我在后端保存并关闭内容时,页面内容的标题部分显示[无标题]。

以下是页面内容不足的屏幕:

enter image description here

所以我决定通过删除行来保留默认的标题字段:

header.types.templavoila_pi1.disabled = 1
来自tsconfig的

。如何防止渲染航向字段?

3 个答案:

答案 0 :(得分:2)

将其标记为隐藏。编辑您的内容(CASE#1),然后从“类型”中选择最后一个名为“隐藏”的内容。

enter image description here

或覆盖标头css配置并将其设置为

display:none;

答案 1 :(得分:0)

我的基本模板的后端模板包含标题的后端样式[无标题]

<style>
.sortable_handle {
    color: transparent;
}
.tpm-title-cell {
    display: none;
}
</style>
###content###

答案 2 :(得分:0)

在TYPO3v7和v8中,您可以通过注册

的挂钩来影响内容预览标题
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']

并重置挂钩中的$headerContent变量。

请参阅https://stmllr.net/blog/customizing-preview-widgets-in-the-typo3-page-module/

相关问题