/ Published in: TYPO3
Assign special CSS classes for menu item in different states.
By default just <li>|</li>-wrap without class.
Active state - li-wrap and class="active"
If active and one of subitems is selected then for parent item li-wrap and class="current" and for child - li-wrap and class="active"
By default just <li>|</li>-wrap without class.
Active state - li-wrap and class="active"
If active and one of subitems is selected then for parent item li-wrap and class="current" and for child - li-wrap and class="active"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# left side submenu lib.menu_sub { wrap = <div class="sub_menu">|</div> 10 { entryLevel = 1 1 { wrap = <ul>|</ul> NO { allWrap = <li>|</li> linkWrap = <span>|</span> ATagBeforeWrap = 1 } CUR { wrapItemAndSub = <li class="active">|</li> linkWrap = <span>|</span> ATagBeforeWrap = 1 } ACTIFSUB { wrapItemAndSub = <li class="current">|</li> linkWrap = <span>|</span> ATagBeforeWrap = 1 } } 2 { wrap = <ul>|</ul> NO { allWrap = <li>|</li> linkWrap = <span>|</span> ATagBeforeWrap = 1 } ACT { allWrap = <li class="active">|</li> } } 3 < .2 } }