I am trying to implement my navigation with typoscript and I am having problems to understand how to wrap right.
I already have a base navigation with 1 level that i
The
wrap of your subnavi should be around the TMENU
. I don't think you need the ATagBeforeWrap
as it only makes linkWrap
within the tag. So it should look like this (not tested):
lib.menu = HMENU
lib.menu {
special = list
special.value = 3,2
1 = TMENU
1 {
wrap = - |
RO < .NO
RO = 1
CUR < .NO
CUR = 1
CUR.wrapItemAndSub = - |
ACT < .CUR
noBlur = 1
IFSUB = 1
IFSUB.wrapItemAndSub= - |
}
2 = TMENU
2 {
wrap =
expAll = 1
noBlur = 1
NO = 1
NO.wrapItemAndSub = - |
}
}
expAll = 1
NO.wrapItemAndSub =
Here you can find good info about wraps, unfortunately it's in german: http://jweiland.net/typo3/typoscript/wrap-moeglichkeiten-und-hierarchie-in-menues.html
By the way: if you are using TYPO3 6+ the noBlur setting has been removed.
---> EDIT:
I shortened your code a little, but I really coudn't reproduce the problem. For me it's working fine. The li around the dropdown gets the dropdown class. But I don't see a duplicate of the
special = list
special.value = 3,2
1 = TMENU
1 {
wrap = - |
RO < .NO
CUR < .NO
CUR.wrapItemAndSub = - |
ACT < .CUR
IFSUB = 1
IFSUB.wrapItemAndSub= - |
IFSUB.ATagParams = class="dropdown-toggle" data-toggle="dropdown"
IFSUB.stdWrap.innerWrap= |
ACTIFSUB < .IFSUB
CURIFSUB < .IFSUB
}
2 = TMENU
2 {
wrap =
expAll = 1
NO = 1
NO.wrapItemAndSub = - |
}
expAll = 1
NO = 1
NO.wrapItemAndSub =