我想用typoscript复制这个......
<ul class="nav nav-pills nav-stacked">
<li role="presentation"><p class="footer-header"><span class="footer-header-span">Company</span></p></li>
<li role="presentation"><a href="/home/">Home</a></li>
<li role="presentation"><a href="/impressum/">Impressum</a></li>
<li role="presentation"><a href="/terms-of-use/">Terms of Use</a></li>
</ul>
......其中&#39;公司&#39;是一个sysfolder ...
Company [Sys Folder][10]
|_Home [Link]
|_Impressum [Link]
|_Terms of Use [Link]
...下面给我链接
lib.footerlinks = HMENU
lib.footerlinks {
special = directory
special.value = 10
1 = TMENU
1 {
wrap = <ul class="nav nav-pills nav-stacked">|</ul>
NO = 1
NO {
ATagBeforeWrap = 1
ATagTitle.field = title
allWrap = <li role="presentation">|</li>
}
CUR = 1
CUR.ATagParams = class="active"
CUR.allWrap = <li role="presentation">|</li>
}
}
...所以我明白了:
<ul class="nav nav-pills nav-stacked">
<li role="presentation"><a href="/home/">Home</a></li>
<li role="presentation"><a href="/impressum/">Impressum</a></li>
<li role="presentation"><a href="/terms-of-use/">Terms of Use</a></li>
</ul>
但是如何将sysfolder添加为第一个带有附加元素的li?
答案 0 :(得分:0)
也许你可以使用属性“entryLevel”解决这个问题,但是你需要两个menue级别。尝试这样的事情:
lib.footerlinks = HMENU
lib.footerlinks {
special = directory
special.value = 10
entryLevel = -1
1 = TMENU
1 {
wrap = <ul class="nav nav-pills nav-stacked">|</ul>
NO = 1
NO {
ATagBeforeWrap = 1
ATagTitle.field = title
allWrap = <li role="presentation">|</li>
}
CUR = 1
CUR.ATagParams = class="active"
CUR.allWrap = <li role="presentation">|</li>
}
2 < .1
2 {
wrap >
}
}