Typoscript:如何在标题链接(stdheader)中渲染子标题?

时间:2014-08-30 01:20:25

标签: html typo3 typoscript typo3-6.2.x

当我为标题设置了链接时,我尝试为标题和副标题呈现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
        }
        (...)
    }
}

1 个答案:

答案 0 :(得分:1)

typolink.parameter.field = header_link移至底部的stdWrap.