[TYPO3] ul/li menu question
Edwin Blokker
a.stoutjesdijk at chello.nl
Tue Oct 10 15:58:32 CEST 2006
Thanks! I wasn't aware of that property.. It's all working nicely now.
JoH schreef:
>>>> 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
>
More information about the TYPO3-english
mailing list