[TYPO3] HMENU/TMENU: no output

JoH asenau info at cybercraft.de
Mon Jun 18 13:37:55 CEST 2007


> For rendering a horizontal menu I have put together this Typoscript:
>
> # Hnav
> lib.hnav = HMENU
> lib.hnav {
> 10 = TMENU

This would be nice for level10 of your navigation (which hopefullly doesn't
exist, since it would be a sign for a bad tree concept).

HMENU elements like TMENU or GMENU always have to start with 1 and not 10.

At the first look they seem to be similar to PAGE or COA where steps of 10
are recommended just to make sure you can insert other stuff later using 12,
25  or whatever you like. But for HMENU the numbers indicate more than just
a position in the array: It's the level you want to render and each level
has to be available even if you don't show the links for this level.

lib.hnav = HMENU
lib.hnav {
    1 = TMENU
    1 {
        blah
    }
    2 = TMENU
    2 {
        blah
    }
    3 = TMENU
    3 {
        blah
    }
}

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com




More information about the TYPO3-english mailing list