[TYPO3-english] Wrapping

Tobias Liegl tliegl at gmail.com
Fri Apr 29 15:58:57 CEST 2011


You have to add "expAll = 1" to your TS.

MENU = HMENU
MENU {
   entryLevel = 0

   # First level
   1 = TMENU
   1 {
     expAll = 1
     wrap =

More info about TMENU can be found here:
http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.3.2/view/1/9/#id2533454

Tobi



Am 29.04.2011 15:47, schrieb Salman Javaid:
> *Hello Tomas,*
>
> Thank you very much for your kind help.
>
> The code you have given is working but it only works when i go to for
> example about us page. If i go to home page or contact page then drop down
> does not work. here is the link http://www.wheelsandtools.be
>
> I want to populate drop down on every page.
>
> I will be really thankful to you if you can help me a bit more.
> *
> Thanks&  Regards,
>
>
> Salman Javaid*
>
>
> On Fri, Apr 29, 2011 at 3:19 PM, Tomas Mrozek<mail at cascaval.com>  wrote:
>
>>> The problem is, if sub menu exists then<li>  should not be closed and
>>> next<ul>  should be started.
>>
>> Well, that's why you are using "wrapItemAndSub" property, isn't it? It
>> wraps the item plus any submenus. However, you have made few mistakes in
>> the setup.
>>
>> Try this:
>>
>> MENU = HMENU
>> MENU {
>>   entryLevel = 0
>>
>>    # First level
>>    1 = TMENU
>>   1 {
>>     wrap =<ul>|</ul>
>>
>>      NO {
>>       allWrap =<li>|</li>
>>     }
>>
>>     IFSUB = 1
>>     IFSUB {
>>        wrapItemAndSub =<li class="submenu">|</li>
>>      }
>>   }
>>
>>   # Second level
>>   2 = TMENU
>>   2 {
>>      wrap =<ul>|</ul>
>>
>>     NO {
>>       allWrap =<li>|</li>
>>     }
>>
>>     IFSUB = 1
>>     IFSUB {
>>        wrapItemAndSub =<li class="submenu_inn">|</li>
>>     }
>>   }
>> }
>>
>> Tomas Mrozek


More information about the TYPO3-english mailing list