typoscript - TYPO3 Menu: only first level is displayed -
i working on new site typo3, version 7.3. site have menu should list levels no matter of current page. tried typoscript (which found on internet in similar variants):
menu = hmenu menu.special = directory menu.special.value = 5 menu.1 = tmenu menu.1 { wrap = <ul>|</ul> expall = 1 no = 1 no { wrapitemandsub = <li>|</li> } act = 1 act { wrapitemandsub = <li class="active">|</li> } } menu.2 < menu.1 menu.2.wrap = <ul>|</ul>
unfortunately outputs first level of page tree. did miss something? (the examples found on internet mostely related version 6.x of typo3) there new command/syntax menus in version 7.x of typo3?
thanks lot help!
hello here top navigation menu typo-script if want go third level menu possible code second level menu
lib.main_menu = coa lib.main_menu { 10 = hmenu 10.special = directory 10.special.value = 2 10 { wrap =<ul class="nav navbar-nav navbar-right text-uppercase">|</ul> #entrylevel = 0 1 = tmenu 1 { expall = 1 noblur = 1 # target = _top no { atagtitle { field = title fieldrequired = nav_title } atagbeforewrap = 1 linkwrap = | wrapitemandsub.insertdata = 1 wrapitemandsub = <li class="menu-{field:uid}">|</li> |*| <li class="menu-{field:uid}">|</li> stdwrap.htmlspecialchars = 1 # allwrap = <div class="menu_header_no">|</div> } act < .no act = 1 act { wrapitemandsub.insertdata = 1 wrapitemandsub = <li class="active menu-{field:uid}" >|</li> # atagparams = class="" # allwrap = <div class="menu_header_act">|</div> } ifsub < .no ifsub = 1 ifsub { stdwrap.htmlspecialchars = 1 wrapitemandsub = <li class="dropdown menu-{field:uid}">|</li> # allwrap = <div class="menu_header_no">|</div> # atagparams = class="dropdown-toggle" data-toggle="dropdown" } actifsub < .ifsub actifsub = 1 actifsub { stdwrap.htmlspecialchars = 1 wrapitemandsub = <li class="active menu-{field:uid} dropdown">|</li> # allwrap = <div class="menu_header_no">|</div> # atagparams = class="dropdown-toggle" data-toggle="dropdown" # stdwrap.wrap = <b class="caret"></b> } } 2 = tmenu 2 { noblur = 1 wrap = <div class="hide-caret" data-toggle="dropdown" role="button" aria-expanded="false"><span class="caret"></span></div><ul class="dropdown-menu" role="menu">|</ul> no { atagtitle { field = title fieldrequired = nav_title } wrapitemandsub.insertdata = 1 stdwrap.htmlspecialchars = 1 wrapitemandsub = <li menu-{field:uid}><span class="sub-name">|</span><div class="menu-img"><img src="typo3conf/ext/fluxtemplate/resources/public/img/menu-5.png" class="img-responsive" alt="a" /></div></li> } act < .no act = 1 act { wrapitemandsub = <li class="active menu-{field:uid}"><span class="sub-name">|</span><div class="menu-img"><img src="typo3conf/ext/fluxtemplate/resources/public/img/menu-5.png" class="img-responsive" alt="a" /></div></li> # atagparams = class="" # allwrap = <div class="menu_header_act">|</div> } } }
}
Comments
Post a Comment