I want to change the wrap
of a TMENU
if the current active menu item has a submenu (ACTIFSUB
).
Below is a excerpt of my typoscript:
lib.navigation = HMENU
lib.navigation {
1 = TMENU
1 {
wrap = <ul class="m-navigation-list">|</ul>
# if the current active menu item has a submenu, change the wrap to this:
# wrap = <ul class="m-navigation-list m-navigation-list--parent">|</ul>
ACTIFSUB = 1
ACTIFSUB {
wrapItemAndSub = <li class="m-navigation-item m-navigation-link--parent m-navigation-link--ladder">|</li>
# overwrite the wrap of the TMENU?
}
}