[TYPO3] ul/li menu question

JoH info at cybercraft.de
Tue Oct 10 15:10:34 CEST 2006


>>> I'm trying to implement a multilevel css / unordered lists based
>>> menu, using templavoila. This is the HTML:
>>> ...
>>> lib.vnavv.2 = TMENU
>>> lib.vnavv.2 {
>>>     # Normal state properties
>>>   NO.allWrap = <li class="vlevel2no">|</li>
>>>   NO.stdWrap.htmlSpecialChars = 1
>>>     # Enable active state and set properties:
>>>   ACT = 1
>>>   ACT.stdWrap.htmlSpecialChars = 1
>>>   ACT.allWrap = <li class="vlevel2act">|</li>
>>> }
>>>
>>> The problem is that when the page is rendered, the second menu level
>>> isn't wrapped in seprate UL tags, so it just becomes a list item
>>> instead of a sublist and is rendered like a first level menu item. I
>>> really don't know how to solve this, I've read the basic tutorials
>>> and this is my first attempt. Any help or tips would be appreciated!
>>
>> lib.vnavv.2.wrap = <ul>|</ul>
>>
> Thanks for the quick reply! Wow, that was a simple solution.. Thanks.

And you should use wrapItemAndSub instead of allWrap here.
This will make sure that the second level will be rendered inside an
<li>-Tag of the first level.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com





More information about the TYPO3-english mailing list