[TYPO3-english] generate li nested in li in menu

Koen Van Nuffelen koen_typo3 at obiwebs.be
Wed Jul 7 18:48:03 CEST 2010


On 7/07/2010 16:05, Rudy Gnodde (WIND Internet) wrote:
> Hello Thijs,
>
> Thijs Hakkenberg wrote:
>> Dear list,
>>
>> I've got the follow setup for my menu:
>>
>> ...
>>
>> I want to nest the sub menu into the first <li>'s (I'm making a css
>> based dropdown)
>> Can anyone tell me what the correct setup is?
>>
>> Cheers,
>
> Use wrapItemAndSub instead of allWrap.
>
> Regards,
>
> Rudy Gnodde
> WIND Internet
> http://www.windinternet.nl

Example which should fulfil your needs:

lib.navv = HMENU
lib.navv {

       1 = TMENU
       1 {
         ##open submenu's by default:
         #expAll=1

         wrap = <ul> | </ul>

         NO.wrapItemAndSub = <li> | </li>

         ACT=1
         ACT.wrapItemAndSub = <li class="cur"> | </li>
         ACT.ATagParams = class="cur"
       }

       2 = TMENU
       2 {
         ##open submenu's by default:
         #expAll=1

         wrap = <ul> | </ul>

         NO.wrapItemAndSub = <li> | </li>

         ACT=1
         ACT.wrapItemAndSub = <li class="cur"> | </li>
         ACT.ATagParams = class="cur"
       }
}

Kind regards,

Koen Van Nuffelen
http://www.obiwebs.be




More information about the TYPO3-english mailing list