当我为标题设置了链接时,我尝试为标题和副标题呈现HTML。现在我有以下HTML呈现:
<h1>
<a href="/my-link/">Header Text</a>
<small>Sub Header Text</small>
</h1>
<h1>
<a href="/my-link/">Header Text <small>Sub Header Text</small></a>
</h1>
任何帮助?
当前的错别字来自Bootstrap Package:
lib.stdheader {
3 {
headerClass {
cObject {
10 {
field = header_position
required = 1
noTrimWrap = |text-| |
}
}
}
}
5 >
10 >
10 = CASE
10 {
setCurrent {
field = header
htmlSpecialChars = 1
typolink.parameter.field = header_link
}
key {
field = header_layout
ifEmpty = {$content.defaultHeaderType}
ifEmpty.override.data = register: defaultHeaderType
}
1 = COA
1 {
10 = TEXT
10.current = 1
20 = TEXT
20 {
field = subheader
stdWrap.noTrimWrap = | <small>|</small>|
stdWrap.required = 1
}
stdWrap.dataWrap = <h1{register:headerClass}>|</h1>
stdWrap.required = 1
}
(...)
}
}
答案 0 :(得分:1)
将typolink.parameter.field = header_link
移至底部的stdWrap.
。