Typo3 多级菜单
Typo3 Multi level menu
我迷失了尝试在 typoscript.These 页面中实现这样的菜单不应该在菜单中:excludeUidList = 2,3,5,6,7,48,49,50,51, 52
<ul>
<li>
<a href="#" class="submenu-toggle" "><span>First page</span><i class="fa fa-plus"></i></a>
<ul class="submenu">
<li>
<a href="link-to-first-subpage" class="submenu-toggle" ><span>Title</span><i class="fa fa-plus"></i></a>
<ul class="submenu">
<li>sub sub page</li>
<li>sub sub page</li>
</ul>
</li>
<li>
<a href="link to second sub-page" class="submenu-toggle"><span>Title</span></a>
</li>
<li>
<a href="link to third sub-page" class="submenu-toggle" ><span>Title</span></a>
</li>
</ul>
</li>
<li>
<a href="#" class="submenu-toggle" ><span>Second page</span><i class="fa fa-plus"></i></a>
<ul class="submenu">
<li>
<a href="link to this sub-page" class="submenu-toggle" ><span>Title</span><i class="fa fa-plus"></i></a>
</li>
<li>
<a href="link to this sub-page" class="submenu-toggle" ><span>Title</span><i class="fa fa-plus"></i></a>
</li>
</ul>
</li>
</ul>
任何人都可以指出我正确的方向吗?帮助将不胜感激
好的,以防万一有人遇到同样的问题这就是我所做的,对我来说效果很好
lib.theMenuMobile = HMENU
lib.theMenuMobile {
entryLevel = 0
excludeUidList = 2,3,5,6,7,48,49,53,54,55
1 = TMENU
1 {
wrap = <ul>|</ul>
expAll = 1
NO = 1
NO {
wrapItemAndSub = <li class="uppermobilelink">|</li>
stdWrap.htmlSpecialChars = 1
ATagTitle.field = title
ATagBeforeWrap = 1
ATagParams = href="#" class="submenu-toggle mldisabled"
linkWrap = |<i class="fa fa-plus"></i>
}
}
2 < .1
2.wrap = <ul class="submenu">|</ul>
2.NO {
ATagTitle.field = subtitle
ATagParams = href="#" class="submenu-toggle"
linkWrap = |<i class="fa fa-plus"></i>
wrapItemAndSub = <li>|</li>
}
3 < .2
}
我迷失了尝试在 typoscript.These 页面中实现这样的菜单不应该在菜单中:excludeUidList = 2,3,5,6,7,48,49,50,51, 52
<ul>
<li>
<a href="#" class="submenu-toggle" "><span>First page</span><i class="fa fa-plus"></i></a>
<ul class="submenu">
<li>
<a href="link-to-first-subpage" class="submenu-toggle" ><span>Title</span><i class="fa fa-plus"></i></a>
<ul class="submenu">
<li>sub sub page</li>
<li>sub sub page</li>
</ul>
</li>
<li>
<a href="link to second sub-page" class="submenu-toggle"><span>Title</span></a>
</li>
<li>
<a href="link to third sub-page" class="submenu-toggle" ><span>Title</span></a>
</li>
</ul>
</li>
<li>
<a href="#" class="submenu-toggle" ><span>Second page</span><i class="fa fa-plus"></i></a>
<ul class="submenu">
<li>
<a href="link to this sub-page" class="submenu-toggle" ><span>Title</span><i class="fa fa-plus"></i></a>
</li>
<li>
<a href="link to this sub-page" class="submenu-toggle" ><span>Title</span><i class="fa fa-plus"></i></a>
</li>
</ul>
</li>
</ul>
任何人都可以指出我正确的方向吗?帮助将不胜感激
好的,以防万一有人遇到同样的问题这就是我所做的,对我来说效果很好
lib.theMenuMobile = HMENU
lib.theMenuMobile {
entryLevel = 0
excludeUidList = 2,3,5,6,7,48,49,53,54,55
1 = TMENU
1 {
wrap = <ul>|</ul>
expAll = 1
NO = 1
NO {
wrapItemAndSub = <li class="uppermobilelink">|</li>
stdWrap.htmlSpecialChars = 1
ATagTitle.field = title
ATagBeforeWrap = 1
ATagParams = href="#" class="submenu-toggle mldisabled"
linkWrap = |<i class="fa fa-plus"></i>
}
}
2 < .1
2.wrap = <ul class="submenu">|</ul>
2.NO {
ATagTitle.field = subtitle
ATagParams = href="#" class="submenu-toggle"
linkWrap = |<i class="fa fa-plus"></i>
wrapItemAndSub = <li>|</li>
}
3 < .2
}