Customize content header
17. September 2015
Include it in your Page-TypoScript:
# Own headers layouts # *********************************************** lib.stdheader > lib.stdheader = CASE lib.stdheader { key.field = header_layout # DEFAULT H1 (0) default = TEXT default.field = header default.wrap = <h1>|</h1> default.typolink { parameter.insertData = 1 parameter = {field:header_link} } #H2 link to top (1) 1 = TEXT 1.field = header 1.wrap = <h2 class="topLinkHead"> | <a class="topLink" title="to top" href="#container"><img width="9" height="11" alt="to top" src="fileadmin/templates/shared/images/btntoplink.gif"> </a></h2> #H2 2 = TEXT 2.field = header 2.wrap = <h2> | </h2> #H3(3) 3 = TEXT 3.field = header 3.wrap = <h3>|</h3> # dont need it (4) 4 = TEXT 4.field > stdWrap.fieldRequired = header stdWrap.if { equals.field = header_layout value = 100 negate = 1 } } # ENDE lib.stdheader }
Use your own label for content headers
17. September 2015
Page TSConfing:
TCEFORM.tt_content.header_layout { ## Rename content headers altLabels.1 = FIRST BIG Header altLabels.2 = Header2 altLabels.3 = Customized Header3 altLabels.100 = LLL:fileadmin/shared_locallang.xml:label_header_hidden } TCEFORM.tt_content.header_layout { ## Remove content headers removeItems = 0,4,5 }