[TYPO3] Menu wrapping problem

David Stone dave at escapecommittee.com
Mon Jan 23 16:36:06 CET 2006


Worked a treat, thank you.

*********************************
David Stone - Lead Developer
The Escape Committee
web | consulting | design
www.escapecommittee.com
dave at escapecommittee.com
01737 768 127
*********************************

Christopher wrote:
> Hi,
> 
> On 1/23/06, David Stone <dave at escapecommittee.com> wrote:
> 
>>Hi all, I'm a little new at this so if I'm missing something simple, my
>>bad- sorry! I need a menu that is nice and semantic, for example:
>>
>><ul>
>>   <li>item 1</li>
>>   <li>item2
>>     <ul>
>>       <li>item2.1</li>
>>       <li>item2.2</li>
>>     </ul>
>>   </li>
>>   <li>item 3</li>
>></ul>
>>
>>However, what I'm getting is in that example is:
>>
>><ul>
>>   <li>item 1</li>
>>   <li>item2</li>
>>     <ul>
>>       <li>item2.1</li>
>>       <li>item2.2</li>
>>     </ul>
>>   <li>item 3</li>
>></ul>
>>
>>.. this isn't 'valid'. Any ideas on how to accomplish this? In my
>>template setup I current have this TS:
>>
>># Menu
>>lib.mainMenu = HMENU
>>lib.mainMenu.1 = TMENU
>>lib.mainMenu.1 {
>>   allWrap = <ul> | </ul>
>>   noBlur = 1
>>   # Normal state properties
>>   NO {
>>     allWrap = <li> | </li>
>>     stdWrap.htmlSpecialChars = 1
>>   }
>>   # Enable active state and set properties:
>>   ACT < .NO
>>   ACT.ATagParams = class="current"
>>   ACT = 1
>>}
>>lib.mainMenu.2 < lib.mainMenu.1
>>lib.mainMenu.2 {
>>   wrap = <ul> | </ul>
>>}
>>
> 
> 
> On the tmenuitem page [1], look for the wrapItemAndSub property (and
> use 'NO.wrapItemAndSub' instead of 'NO.allWrap').
> 
> 
> -Christopher
> 
> [1] http://typo3.org/documentation/document-library/doc_core_tsref/TMENUITEM/
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 



More information about the TYPO3-english mailing list