TYPO3 Extension 按字母顺序排列的站点索引 - 如何添加额外的换行?

发布于 2024-08-02 02:32:43 字数 1535 浏览 11 评论 0原文

在按字母顺序排列的站点索引中添加额外换行

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

#
# 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;( | )
}

Add extra wrap in Alphabetical site index

Situation described in the code. I think my problem is the right scope, but i don't how to solve it. Thanks a lot.

#
# 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 =  ( | )
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

内心荒芜 2024-08-09 02:32:43

尝试

...
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 是你的朋友: )

try

...
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 is your friend :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文