[TYPO3] HMENU/TMENU: 2 levels in 1 menu?
Tyler Kraft
headhunterxiii at yahoo.ca
Sun Dec 3 14:38:58 CET 2006
why not just give use your tree structure and then ask how to do it as a
menu...
-home
-page 1
-page 2
-subpage 2.1
-subpage 2.2
-subpage 2.3
-page 3
-page 4
-subpage 4.1
-subpage 4.2
-page 5
So lets assume you want to show page 2 and all its sub pages in one
menu? But do you always want to show that same menu or does it change
depending on if your in section 2 or 3 or 4? and is the menu always open
or only when your ona page in the rootline of page 2?
Pieter wrote:
> Hi all,
>
> I'm trying to get 2 levels of the tree structure in 1 menu list: 1 page
> of level n on top and all the pages of level n+1.
> My Typoscript looks like this (but is not working):
> temp.mainmenu.20 = HMENU
> temp.mainmenu.20.1 = TMENU
> temp.mainmenu.20.1 {
> #details about level 1
> }
> temp.mainmenu.20.2 = COA
> # this should show 1 item of level 1
> temp.mainmenu.20.2.1 = TMENU
> temp.mainmenu.20.2.1 {
> maxItems = 1
> entryLevel = -1 # not sure about this value
> }
> # this should show all the items of level 2 belonging to
> # the level 1 item shown on top.
> temp.mainmenu.20.2.2 = TMENU
> temp.mainmenu.20.2.2 {
> # ...
> }
>
> The COA inside the menu does not seem to work. Is there any other way
> to get this done?
>
> Thanks very much
> Pieter
More information about the TYPO3-english
mailing list