如果我有这个代码,我可以生成一个链接菜单。并说我只想包括 Uid 4 和 8。
lib.leftNavi = HMENU
lib.leftNavi.entryLevel=0
lib.leftNavi.special = list
lib.leftNavi.special.value = 4,8
lib.leftNavi.1 = TMENU
lib.leftNavi.1 {
wrap = <div id="leftMenu"><ul class="L1">|</ul></div>
expAll = 0
NO = 1
NO.allWrap = <li>|</li>
NO.stdWrap.wrap = <span>|</span>
RO < .NO
RO = 1
CUR < .NO
CUR = 1
CUR.allWrap = <li class="current">|</li>
CUR.stdWrap.wrap = <span>|</span>
CUR.ATagParams =
ACT < .CUR
}
我的问题是现在..
我怎么能说我想生成一个链接菜单,来自/来自 Uid 4 下的子页面,所以它不显示指向 Uid 4 的链接,而是显示此 Uid 下的 3-5 个子页面?
..更新..
好的,我现在有了这段代码,几乎可以了。
lib.prodNavi = HMENU
lib.prodNavi.entryLevel=0
lib.prodNavi.special = list
lib.prodNavi.special.value = 5
lib.prodNavi.1 = TMENU
lib.prodNavi.1 {
wrap = <div id="categorylist-box"><div id="categorylist-box-top"><h2><em>Produkter</em></h2></div><div id="categorylist-box-content"><ul>|</ul></div><div id="categorylist-box-bottom"></div></div><div class="pagecontent-box" id="pagecontent-box-59">
expAll = 1
NO = 1
NO.allWrap = <li>|</li>
NO.stdWrap.wrap = <span>|</span>
NO.doNotShowLink = 0
NO.doNotShowLink.stdWrap.override = 1
NO.doNotShowLink.stdWrap.if {
equals.field = uid
value = 5
}
RO < .NO
RO = 1
CUR < .NO
CUR = 1
CUR.allWrap = <li class="current">|</li>
CUR.stdWrap.wrap = <span>|</span>
CUR.ATagParams =
ACT < .CUR
}
lib.prodNavi.2 < lib.prodNavi.1
但它向我展示了橘子盒,几乎就像它使用 Wrap 2 次一样。
我如何只用一个包装显示它。