[TYPO3] Possible to split a menu in half?

Jody Cleveland Cleveland at winnefox.org
Thu Feb 2 16:39:23 CET 2006


Hello,

> try something like (look at tsref for HMENU)
> lib.mainMenu = HMENU
> lib.mainMenu {
>   begin = 0
>   max = 5
>   wrap = div1
> }
> ....
> 
> lib.mainMenuX < lib.mainMenu
> lib.mainMenuX {
>   begin = 5
>   wrap = div2
> }

Ok, I added this to my TS:

lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0

lib.mainMenu {
  begin = 0
  max = 3
  wrap = <div id="menu1">|</div>
}

lib.mainMenuX < lib.mainMenu
lib.mainMenuX {
  begin = 3
  wrap = <div id="menu2">|</div>
}

I also modified the html template to have two divs, rather than just
one. I added a content element into TV called mainmenux, and mapped it
to the second div. I tried this out on my test site here:
http://www.wals.lib.wi.us/fdltest/

But, it's still displaying everything in one line.

>From what I have, I'm guessing the menu should start with 0, and end
with the 3rd item. Then, the second menu should pick up with everything
after that. Is this correct? Or, is something else I have messed up?

- jody



More information about the TYPO3-english mailing list