Skip to content

Instantly share code, notes, and snippets.

@josefglatz
Last active December 20, 2015 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josefglatz/6210945 to your computer and use it in GitHub Desktop.
Save josefglatz/6210945 to your computer and use it in GitHub Desktop.
TYPO3 CMS ext:css_styled_content lib.stdheader beginn with <h2> && <h1> for first CE in colPos 0
######
# Ändern der stdHeader (damit er nicht bei h1 beginnt)
######
lib {
stdheader {
10 {
stdWrap.wrap >
1.dataWrap = <h2>|</h2>
## set's first
1.dataWrap.override.cObject = TEXT
1.dataWrap.override.cObject.value = <h1>|</h1>
1.dataWrap.override {
# if CE is first element
if.value = 1
if.equals.data = cObj:parentRecordNumber
# AND if CE is in colPos "0"
if.isFalse.field = colPos
}
2.dataWrap = <h3>|</h3>
3.dataWrap = <h4>|</h4>
4.dataWrap = <h5>|</h5>
5.dataWrap = <h5>|</h5>
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment