简体   繁体   English

TYPO3 v8上具有css_styled_content的前端没有子标题

[英]No subheader on the frontend with css_styled_content on TYPO3 v8

When css_styled_content is used, the subheader is not seen at all on the frontend. 使用css_styled_content时,前端根本看不到子标题。 However replacing css_style_content with fluid_styled_content, the subheader is shown.. but some other things get bad, like images out of dimensiosn.. So I would like to make it work with css_styled_content, even though it is deprecated, and will be removed in the future. 但是,用fluid_styled_content替换css_style_content时,会显示子标题。.但是其他一些情况变得很糟糕,例如dimensiosn中的图像。.所以我想使其与css_styled_content一起使用,即使它已被弃用,并且将来会被删除。

I am using templavoila for templating. 我正在使用templavoila进行模板制作。 Thought that perhaps some typoscript was written in the localprocessing xml for subheader rendering, searched the database and found nothing related. 认为可能是在localprocessing xml中写了一些印刷文字来进行子标题渲染,搜索了数据库却没有发现任何相关信息。

The subheader is in text CType. 子标题位于文本CType中。

Perhaps this typoscript is deprecated/needed to be changed? 也许不赞成/需要更改此打字稿?

    tt_content.text.5 < tt_content.header.20
    tt_content.text.5 {
      dataWrap = <h4 class="subheader subheader-{field:layout}">|</h4>
    }

Thanks. 谢谢。

Since the subheader is already part of CSS-styled-content's 由于子标题已经是CSS样式内容的一部分

lib.stdheader

which again is already assigend to the CType rendering of 再次已经属于CType呈现

tt_content.text

there is no need to add it manually to tt_content.text.5 无需手动将其添加到tt_content.text.5

The breaking change you might be looking for can be found in lib.sdtheader itself, since the subheader is rendered within HTML5 doctypes only. 您可能要查找的重大更改可以在lib.sdtheader本身中找到,因为子标题仅在HTML5文档类型内呈现。

if {
    isTrue {
        field = subheader
    }
    value = html5
    equals.data = TSFE:config|config|doctype
}

So setting the correct doctype should do the job in this case. 因此,在这种情况下,设置正确的文档类型应该可以完成任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM