I'm currently working on my navbar in Typo3 Typoscript. My project page structur goes as follows:
root
1
1
1
2
3
3
1
1
2
3
3
What I want now is to exclude the 2's (kick them), but keep displaying all 3's when selecting the 1's that have 3's as their children.
Like this:
root
1
1
1
3
3
1
1
3
3
My code in TypoScript that displays the complete page structure
NAVIOFF = HMENU
NAVIOFF.entryLevel = 0
NAVIOFF {
1 = TMENU
1 {
expAll = 1
wrap = <ul class="sf-menu">|</ul>
noBlur = 1
NO = 1
NO.ATagTitle.field = title
NO.wrapItemAndSub = <li>|</li>
IFSUB = 1
IFSUB < .NO
IFSUB.ATagParams = class="pfeile"
ACT = 1
ACT < .NO
ACT.ATagParams = class="menuakt"
CUR = 1
CUR < .ACT
}
2 < .1
2.wrap = <ul>|</ul>
2.NO.wrapItemAndSub = <li class="first"> |</li> |*| <li> |</li> |*| <li class="last"> | </li>
2.ACT = 0
3 < .2
4 < .2
}
Is it possible to achieve what I want? So far I stumbled across excludeUIDlist but then I obviously kick the complete 2's and the 3's "attached" to them.
Thanks in advance.
just skip the 2nd level in menu:
do nothing with the 2nd level:
of course you can not copy
.2
. For further levels you start with.3
adapt it and then copy level 3: