navigation - Counting Menu Items of the SubMenu in Typo3 -
i'm trying create nav in typo3, , need know number of items in submenu of current menu. don't see possibity in achieving this.
i know {register:count_menuitems}, doesn't help.
in first level of nav need number of items of second level put class of list (4 in example)
wrapitemandsub = <li class="dropdown mega-menu-4"> | </li>
is worth trying or not possible?
thanks :)
example of nav:
#testmenu4 lib.testmenu4 = hmenu lib.testmenu4 { entrylevel = 0 1 = tmenu 1 { expall = 1 wrap = <ul class="nav navbar-nav"> | </ul> noblur = 1 no = 1 no { wrapitemandsub = <li> | </li> stdwrap.htmlspecialchars = 1 atagtitle.field = title } ifsub = 1 ifsub { wrapitemandsub = <li class="dropdown mega-menu-4"> | </li> wrapitemandsub.insertdata = 1 stdwrap.htmlspecialchars = 1 atagtitle.field = title atagparams = class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true" } act = 1 act <.no actifsub = 1 actifsub <.ifsub } 2 = tmenu 2 <.1 2 { expall = 1 wrap = <ul class="dropdown-menu"> | </ul> no { donotshowlink = 1 wrapitemandsub = <li class="one-column"> | </li> } ifsub = 0 actifsub = 0 } 3 = tmenu 3 <.2 3 { expall = 1 wrap = <ul> | </ul> no { donotshowlink = 0 wrapitemandsub = <li class="nav-title"> | </li> |*| <li> | </li> } } }
Comments
Post a Comment