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:

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 = 
    |
# Normal Style NO = 1 NO { wrapItemAndSub =
  • |
  • } # Style, if menu page is current page CUR = 1 CUR { wrapItemAndSub =
  • |
  • 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.

    2 comments

    1. avatar
      wrote this comment on

      Hello Mr Nicolas Kuttler, thanks in advance for being there.
      Please I am a new web developer learning and currently working with TYPO3 to develop a church's site.
      I have a problem with my page to page links, that is from the frontend; I can not click or link to another page within the same site. Whenever I clicked on any supposed link, it brings me to the actual page but the template will not appear including any image and banner on that page.
      Hope to hear from you soonest.
      Thanks,
      Oluwaseyi.

      1. avatar
        wrote this comment on

        Hello Oluwaseyi,

        hm, to be honest, I have no idea. It sounds like you didn't configure your template correctly? It has to be a root template i think. You might have more luck asking on some forum as there are more readers. I've never had this problem.
        Good luck!

    Start a new thread

    Cancel reply
    Markdown. Syntax highlighting with <code lang="php"><?php echo "Hello, world!"; ?></code> etc.