Warning: A non-numeric value encountered in system/modules/core/library/Contao/Picture.php on line 241
#0 system/modules/core/library/Contao/Picture.php(241): __error()
#1 system/modules/core/library/Contao/Picture.php(198): Contao\Picture->getTemplateDataSource()
#2 system/modules/core/library/Contao/Controller.php(1535): Contao\Picture->getTemplateData()
#3 system/modules/core/elements/ContentHyperlink.php(74): Contao\Controller::addImageToTemplate()
#4 system/modules/core/elements/ContentElement.php(265): Contao\ContentHyperlink->compile()
#5 system/modules/core/library/Contao/Controller.php(484): Contao\ContentElement->generate()
#6 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement()
#7 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
#8 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#9 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate()
#10 system/modules/core/library/Contao/InsertTags.php(430): Contao\Controller::getArticle()
#11 system/modules/core/library/Contao/Controller.php(692): Contao\InsertTags->replace()
#12 system/modules/core/classes/FrontendTemplate.php(100): Contao\Controller::replaceInsertTags()
#13 system/modules/core/pages/PageRegular.php(190): Contao\FrontendTemplate->output()
#14 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate()
#15 index.php(20): Contao\FrontendIndex->run()
#16 {main}

Warning: A non-numeric value encountered in system/modules/core/library/Contao/Picture.php on line 242
#0 system/modules/core/library/Contao/Picture.php(242): __error()
#1 system/modules/core/library/Contao/Picture.php(198): Contao\Picture->getTemplateDataSource()
#2 system/modules/core/library/Contao/Controller.php(1535): Contao\Picture->getTemplateData()
#3 system/modules/core/elements/ContentHyperlink.php(74): Contao\Controller::addImageToTemplate()
#4 system/modules/core/elements/ContentElement.php(265): Contao\ContentHyperlink->compile()
#5 system/modules/core/library/Contao/Controller.php(484): Contao\ContentElement->generate()
#6 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement()
#7 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
#8 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#9 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate()
#10 system/modules/core/library/Contao/InsertTags.php(430): Contao\Controller::getArticle()
#11 system/modules/core/library/Contao/Controller.php(692): Contao\InsertTags->replace()
#12 system/modules/core/classes/FrontendTemplate.php(100): Contao\Controller::replaceInsertTags()
#13 system/modules/core/pages/PageRegular.php(190): Contao\FrontendTemplate->output()
#14 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate()
#15 index.php(20): Contao\FrontendIndex->run()
#16 {main}
Navigation - onlineweinshop

Navigation menus

Contao offers you great freedom when it comes to creating navigations on a website. Eight different modules with their own options help you to cover almost every way you could think of to lead visitors to the information they are looking for. A big part of the navigation of a site tree based CMS with nested pages is the concept of start and stop levels.

Let's try to get a little insight into this concept and explain what can be accomplished with Contao.

Example site structure

  • Home
  • Music
    • Genres
      • Rock
      • Pop
    • Artists
      • Mrs. X
      • Mrs. Y
  • Movies
    • Genres
      • Action
      • Fantasy
    • Actors
      • Mr. X
      • Mr. Y
  • Contact

Default navigation menu

By default, the navigation menu module simply displays the whole site structure. Whenever you add a page to the site tree it will automatically appear in this list.

Stop level set to 1

If you set the stop level to 1, the navigation menu will only display the first level and all activated pages. Here is what the navigation menu looks like when you are viewing the page Music -> Genres -> Pop.

  • Home
  • Music
    • Genres
      • Pop
      • Rock
  • Movies
  • Contact

Stop level 1 with hard limit

If you want to display even less pages in the navigation menu, you choose the new option "hard limit". That way the navigation menu never shows any page beyond the stop level no matter wether they are activated or not. The ouput is exacly the same as with the "navigation main menu items" module. However, by being able to set a stop level of your choosing, you are not limited to the first level anymore as with the "navigation main menu items" module!

  • Home
  • Music
  • Movies
  • Contact

Stop level 2 with hard limit

A lot of people have requested a navigation menu that allows them to show the first two levels as horizontal main navigation menu and the other levels as optional vertical submenu. You can now accomplish that with the combination of the stop level set to 2 and „hard limit“ enabled.

  • Home
  • Music
    • Genres
    • Artists
  • Movies
    • Genres
    • Actors
  • Contact

Start level 1

The "navigation submenu items" module basically displays the navigation menu from the second level, using the current main menu item as the starting point. Now you can accomplish the same structure with the navigation menu by simply setting the start level to 1. Here is how the navigation menu looks like on the page Music -> Genres -> Pop.

  • Genres
    • Pop
    • Rock
  • Artists
    • Mrs. X
    • Mrs. Y

Start level 2

If your main navigation menu includes the first two levels, but you also want your submenu to start with an offset of two levels you have to set the start level to an equivalent 2. Here is how the navigation menu looks like on the Pop page.

  • Pop
  • Rock