I want to have different wrap for active submenu. My typoscript:
lib.navigation.sidebar = COA
lib.navigation.sidebar {
10 = HMENU
10 {
entryLevel = 0
1 = TMENU
1 {
wrap = <nav class="section-subnav"><ul class="nav nav-pills nav-stacked subnav subnav-1">|</ul></nav>
expAll = 1
noBlur = 1
NO = 1
NO {
ATagTitle.field = nav_title // title
wrapItemAndSub = <li>|</li>
stdWrap.wrap = | <span class="subnav-toggle"><i class="fa fa-angle-right"></i></span>
}
ACT < .NO
ACT {
wrapItemAndSub = <li class="active js-subnav-toggle">|</li>
}
CUR < .ACT
}
2 = TMENU
2 {
###
### This wrap should have class "in" for active submenu:
### wrap = <ul class="nav nav-pills nav-stacked subnav subnav-2 collapse in">|</ul>
###
wrap = <ul class="nav nav-pills nav-stacked subnav subnav-2 collapse">|</ul>
expAll = 0
noBlur = 1
NO = 1
NO {
ATagTitle.field = nav_title // title
wrapItemAndSub = <li>|</li>
}
ACT < .NO
ACT {
wrapItemAndSub = <li class="active">|</li>
}
CUR < .ACT
}
}
}
Basically I need to add one more css class to my wrapped UL if we have item with state ACT in it. I will be grateful for any tips.