繁体   English   中英

TYPO3扩展按字母顺序排列的网站索引-如何添加其他包装?

[英]TYPO3 Extension Alphabetical site index - How to add additional wrap?

在按字母顺序的网站索引中添加额外的环绕

代码中描述的情况。 我认为我的问题是正确的范围,但我不知道如何解决。 非常感谢。

#
# Alphabetical site index
#
# @see  http://typo3.org/documentation/document-library/extension-manuals/cl_alphabeticalindex/0.1.3/view/toc/0/#
# @note typoscript/templates/ext/cl_alphabeticalindex/setup.ts
#
# stdWraps
#
plugin.tx_clalphabeticalindex_pi1 {
    excludeDoktypes = 5,6
    index.showEmpty = true
    list.defaultChar = A

    index_stdWrap.wrap = <ul class="alpha-index">|</ul>
    letter_stdWrap.wrap = <li>|</li>

    pageList_stdWrap.wrap = <ul class="alpha-index-page">|</ul>
    pageTitle_stdWrap.wrap = <li>|</li>

    # I Want to add inside the <li></li>
    # another wrap with the subtitle of the
    # pages <span>subtitle</span>
    # .. data = page:subtitle // page:title

    # this doesn't work
    /*
    pageTitle_stdWrap = COA
    pageTitle_stdWrap {
        10 = TEXT
        10 {
            outerWrap.cObject = COA
            outerWrap.cObject {
                10 = TEXT
                10 {
                    noTrimWrap = |<li>|</li>|
                    wrap = <li>|</li>
                    20 = TEXT
                    20 {
                        data = page:subtitle // page:title
                        innerWrap = <span>|</span>
                    }
                }
            }
        }
    }
    */

    parentTitle_stdWrap.wrap = &nbsp;( | )
}

尝试

...
pageTitle_stdWrap {
    dataWrap = <span>{page:subtitle}</span>|
    wrap3 = <li>|</li>
}
...

http://forge.typo3.org/repositories/entry/typo3v4-core/trunk/typo3/sysext/cms/tslib/class.tslib_content.php?rev=5764#L3302是你的朋友:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM