[TYPO3] ul/li menu question
Edwin Blokker
a.stoutjesdijk at chello.nl
Tue Oct 10 23:09:19 CEST 2006
Thanks Joey, but I'm not sure what you mean. This is my typoscript:
# Vertical menu cObject
lib.vnavv = HMENU
lib.vnavv.entryLevel = 1
# First level menu-object, textual
lib.vnavv.1 = TMENU
lib.vnavv.1 {
# Normal state properties
NO.wrapItemAndSub = <li class="vlevel1no">|</li>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.wrapItemAndSub = <li class="vlevel1act">|</li>
}
# Second level menu-object, textual
lib.vnavv.2 = TMENU
lib.vnavv.2.wrap = <ul>|</ul>
lib.vnavv.2 {
# Normal state properties
NO.wrapItemAndSub = <li class="vlevel2no">|</li>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.wrapItemAndSub = <li class="vlevel2act">|</li>
}
I have used templavoila to make the template and mapped the <ul> tag
wich holds the menu list. Should I change the mapping in any way?
JoH schreef:
>> I do have one more question now.. When I view the rootpage, the menu
>> should not be generated. However, it is still generated as an empty
>> menu, like this:
>>
>> <ul class="vnavv"></ul>
>>
>> Is it possible to have this removed when there are no menu items to be
>> displayed? I'm trying to accomplish this with the 'if' property, but I
>> can't figure out how to use it in this context.
>
> Don't wrap the HMENU but the TMENU (or GMENU or whatever you are using).
>
> Joey
>
More information about the TYPO3-english
mailing list