[TYPO3-english] Help with menu

Pero Peric pperic at mail.com
Wed Jul 30 21:11:41 CEST 2014


Hi Jan,

Maybe it is more clear like this:

<div class="first-and-second-level-wrap">
    <div class="first-level-wrap2">
       <h4>Menu item link on first Level</hr>
    </div>

    <div class="second-level-wrap">
      <div class="second-level-wrap2">
          <h4>Menu item link on second level</h4>
      </div>
    </div>
</div>

So first level menu item is wrapped with 2 DIVs and second level menu 
item is wrapped with 3 DIVs from which first DIV is also used to wrap 
first menu item.

I will try your solution. That might work. Thx!

Regards.

> Hi,
>
> I don't understand where's the menu. Each item in the menu will have
> wrap like this or the whole menu should be wrapped? Please provide
> example with multiple menu items.
>
> If the menu has only 2 levels, then you can wrap the whole menu
> (HMENU.wrap).
>
> You could do the wrap like this:
>
> 1 = TMENU
> 1.NO.allWrap = <div>|</div>
> 1.IFSUB = 1
> 1.IFSUB.allWrap = <div>|
> 2.NO.allWrap = |</div>
>
> Jan
>
> Dne 29. 7. 2014 23:21, Pero Peric napsal(a):
>> Hi,
>>
>> I have little problem with menu generation in TS. I need to generate
>> this kind of HTML:
>>
>> <div class="first-and-second-level-wrap">
>>    <div class="first-level-wrap2">
>>       <h4>Text..</hr>
>>    </div>
>>
>>    <div class="second-level-wrap">
>>      <div class="second-level-wrap2">
>>         <h4>Text2...</h4>
>>      </div>
>>    </div>
>> </div>
>>
>> So, the problem is that i have to make a div wrap around first and
>> second level. Is this possible to do? Thx!
>>
>> Regards.
>



More information about the TYPO3-english mailing list