blocks separately
externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul, pre, figure, figcaption
externalBlocks {
ol {
stripNL = 1
stdWrap.parseFunc = < lib.parseFunc
}
ul {
stripNL = 1
stdWrap.parseFunc = < lib.parseFunc
}
pre {
stdWrap.parseFunc < lib.parseFunc
}
table {
stripNL = 1
stdWrap {
HTMLparser = 1
HTMLparser {
keepNonMatchedTags = 1
}
}
HTMLtableCells = 1
HTMLtableCells {
# Recursive call to self but without wrapping non-wrapped cell content
default.stdWrap {
parseFunc = < lib.parseFunc_RTE
parseFunc.nonTypoTagStdWrap.encapsLines {
nonWrappedTag =
innerStdWrap_all.ifBlank =
}
}
}
}
# ideally, "div" is not calling itself recursive, but instead uses a similar approach as ol/ul/pre
# so it is a container with content, which does not need to be wrapping tags in it.
div {
stripNL = 1
callRecursive = 1
}
article < .div
aside < .div
figure < .div
figcaption {
stripNL = 1
}
blockquote < .div
footer < .div
header < .div
nav < .div
section < .div
dl < .div
dd < .div
}
nonTypoTagStdWrap {
encapsLines {
encapsTagList = p,pre,h1,h2,h3,h4,h5,h6,hr,dt
nonWrappedTag = P
innerStdWrap_all.ifBlank =
}
}
}
# Content selection
styles.content.get = CONTENT
styles.content.get {
table = tt_content
select {
orderBy = sorting
where = {#colPos}=0
}
}
# Content element rendering
tt_content = CASE
tt_content {
key {
field = CType
}
default = TEXT
default {
field = CType
htmlSpecialChars = 1
wrap =
ERROR: Content Element with uid "{field:uid}" and type "|" has no rendering definition!
wrap.insertData = 1
}
}
'
);
// Register search key shortcuts
$GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';