我有网页页面树下面:
- Main domain 1 (main domain)
- Home
- about us
- Contact
- gallery
- Sub domain 2 (sub-domain)
- Home
- about us
- contact
- gallery
现在,当主域处于活动状态时,它也会显示子域内页面。我只需要域名(子域2)。点击链接时,它将切换并重定向到子域
以下是HMENU的错别字:
lib.nav = HMENU
lib.nav.wrap = <nav id="primary-menu">|</nav>
lib.nav{
special = directory
special.value = 6
# excludeUidList = 6
1 = TMENU
1 {
wrap = <ul>|</ul>
expAll = 1
NO = 1
NO {
10 = TEXT
10.data = field:title // field:nav_title
10.wrap = |
wrapItemAndSub = <li>|</li>
wrapItemAndSub.override.cObject = COA
wrapItemAndSub.override.cObject {
if {
value = 4
equals.field = doktype
isTrue = 1
isTrue.if {
value.data = TSFE:page|uid
equals.field = shortcut
}
}
10 = TEXT
10.value = <li class="current">|</li>
}
}
ACT = 1
ACT.ATagBeforeWrap = 1
ACT < .NO
ACT.wrapItemAndSub = <li class="current">|</li>
IFSUB = 1
IFSUB < .NO
IFSUB.wrapItemAndSub = <li class="sub-menu" >|</li>
}
2 <.1
2{
wrap = <ul style="display: none;">|</ul>
NO = 1
NO {
10 = TEXT
10.data = field:title // field:nav_title
10.wrap = |
wrapItemAndSub = <li>|</li>
wrapItemAndSub.override.cObject = COA
wrapItemAndSub.override.cObject {
if {
value = 4
equals.field = doktype
isTrue = 1
isTrue.if {
value.data = TSFE:page|uid
equals.field = shortcut
}
}
10 = TEXT
10.value = <li class="current">|</li>
}
}
ACT = 1
ACT.ATagBeforeWrap = 1
ACT < .NO
ACT.wrapItemAndSub = <li class="current">|</li>
IFSUB = 1
IFSUB < .NO
IFSUB.wrapItemAndSub = <li class="sub-menu" >|</li>
}
}
此处重定向链接可以正常使用,但在浏览主域网站时,它还会显示子域的子页面。任何人都可以帮我解决这个问题吗?
答案 0 :(得分:2)
您可以使用excludeUidList
,如下所示。
excludeUidList = 21,22 // Sub-page Uid with comma seprated like this
例如。
lib.nav = HMENU
lib.nav.wrap = <nav id="primary-menu">|</nav>
lib.nav{
excludeUidList = 21,22
special = directory
special.value = 6
....
.....