简体   繁体   中英

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. 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.

I am using templavoila for templating. Thought that perhaps some typoscript was written in the localprocessing xml for subheader rendering, searched the database and found nothing related.

The subheader is in text 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

lib.stdheader

which again is already assigend to the CType rendering of

tt_content.text

there is no need to add it manually to 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.

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

So setting the correct doctype should do the job in this case.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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