我想用打字稿复制这个......
<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>
。其中"公司"是一个系统文件夹...
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>
但是,如何将系统文件夹添加为第一个li,并在其周围添加其他元素?
也许您可以使用属性"entryLevel"来解决此问题,但是您将需要两个菜单级别。尝试这样的事情:
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 >
}
}