[TYPO3-english] Menu problem

Philipp Holdener philipp at holdener.ch
Fri Sep 18 16:10:02 CEST 2009


Tomiţă MILITARU schrieb:
> Hello,
> I've started to learn Typo 3 so I can put my static website on Typo.
> A problem that I don't seem to get over it is about the menu. For the menu
> I'm using HMENU with TMENU, the menu is a dropdown menu (CSS only, no JS),
> so I've wraped the generated menu in <li>, as it follows:
> 
> temp.menu = HMENU
> temp.menu.noBlur = true
>   # First level menu-object, textual
> temp.menu.1 = TMENU
> temp.menu.1.expAll = true
> temp.menu.1.wrap = <ul class="menu"> | </ul>
> temp.menu.1 {
>     # Normal state properties
>   NO.wrapItemAndSub = <li class="top"> | </li>
>     # Enable active state and set properties:
>   CUR = 1
>   CUR.allWrap = <li class="top current"> | </li>
>   CUR.ATagParams = class="top_link current"
>   NO.ATagParams = class="top_link"
> }
> 
>   # Second level menu-object, textual
> temp.menu.2 = TMENU
> temp.menu.2.wrap = <ul class="sub"> | </ul>
> temp.menu.2 {
>     # Normal state properties
>   NO.allWrap = <li> | </li>
> }
> 
> The code works fine, generates the lists in the correct order, but after I
> click one of the menu items, the lists aren't generated corrected, the child
> list is generated outside de <li class="top"> | </li>.
> The correct HTML generated:
> <ul class=menu>
>     <li class="top"> link without subpages </li>
>     <li class="top"> link with subpages
>           <ul class="sub">
>                   <li> link </li>
>                   <li> link </li>
>                   <li> link </li>
>            </ul>
>      </li>
> </ul>
> So after I click one of the menu items, the generated HTML is :
> <ul class=menu>
>     <li class="top"> link without subpages </li>
>     <li class="top"> link with subpages
> 
>      </li>
>        <ul class="sub">
>                   <li> link </li>
>                   <li> link </li>
>                   <li> link </li>
>            </ul>
> </ul>
> Can someone please tell me where I'm doing wrong? Thanks!
> 



hi

NO.wrapItemAndSub = <li class="top"> | </li>
CUR.allWrap = <li class="top current"> | </li>


should be for CUR "wrapItemAndSub" too ;-)

Greetings
Philipp


More information about the TYPO3-english mailing list