Very simple Typo3 navigation
Sometimes I get asked how to build a menu in Typo3. It’s really easy, but TSref isn’t very verbose. So here’s how to build a basic, valid Typo3 navigation:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | foo = HMENU foo { # I use this because I like to have one root page # that links to the first content page. All my # level 1 Pages are subpages of that page. entryLevel = 1 # define the first level 1 = TMENU 1 { wrap = <ul>|</ul> # Normal Style NO = 1 NO { wrapItemAndSub = <li>|</li> } # Style, if menu page is current page CUR = 1 CUR { wrapItemAndSub = <li>|</li> ATagParams= class="cur" } } # Define one more level, create a copy of level 1 2 < .1 # add as many more levels as you need # 3 < .1 etc. } |
Replace foo with whatever marker or position in your TS array you want. If you want to do anything more fancy, you should really read the fine manual.













