[TYPO3-english] Show every page of the navigation

Jan Bednarik info at bednarik.org
Fri Oct 8 08:41:15 CEST 2010


Hi,

here's an idea:

# create first level menu
lib.mainMenu = HMENU
lib.mainMenu {
1 = TMENU
1.NO.allWrap = |
}

lib.submenu = HMENU
lib.submenu {
# in order to get all 2nd level menus you need to iterate over first level
1 = TMENU
1.expAll = 1
1.NO.doNotLinkIt = 1
1.NO.stdWrap.override =  
1.NO.allWrap = <div style="display:none">|</div>
2 = TMENU
2.NO.allWrap = |
}

See, the point is that in order to generate all 2nd level menus, you 
need to iterate over 1st level. Since you don't want 1st level to be 
displayed in this case, you don't link it, title is overriden with space 
and everything is hidden.

-- 
Jan Bednarik
www.bednarik.org - web about TYPO3 in czech


More information about the TYPO3-english mailing list