我猜你正在寻找
lib.menupage.1.sectionIndex.useColPos = -1
(但这似乎只在 TYPO3 6.0 中可用)
作为一种解决方法,应该可以自己完成。呈现一个普通菜单,但使用 CONTENT 对象覆盖(allWrap.cObject 应该完成这项工作)链接,该对象从该页面的 tt_content 检索所有标题。这是一些伪代码,有助于解释我将如何尝试解决该问题。这段代码行不通,只是说明原理:
lib.menupage = HMENU
lib.menupage {
1 = TMENU
1 {
wrap = <ul> | </ul>
NO.wrapItemAndSub = <li> | </li>
# pgampe suggested to use: stdWrap2.append instead of allWrap.cObject. My intention
# was to override the original link at all. But you should be able to play with
# the different stdWrap functions to get the best solution
# as far as i remember, allWrap will be wrapped by "wrapItemAndSub"
NO.allWrap.cObject = CONTENT
NO.allWrap.cObject {
table = tt_content
select {
# the uid is the id of the page where we need the content from
pidInList.field = uid
orderBy = colPos, sorting
}
# inside the renderobj we get the elements which are retrieved by CONTENT
renderObj = TEXT
renderObj {
field = header
typolink.parameter.field = pid
typolink.section.field = uid
required = 1
wrap = <span class="inside-li">|</span>
}
}
}
}