deutsch english
mvlcek online
software & more...
  • home
  • news
  • getsimple
    • i18n
    • navigation
      • breadcrumbs
      • left
      • top & left
      • pulldown & left
      • child pages
      • page navigation
      • independent menus
      • navigation demo
      • rendering
    • gallery
    • search
    • news
    • rss feeds
    • custom fields
    • special pages
    • math/formulas
    • pagify
    • dynamic pages
    • hits & visits
    • faq
    • editor
    • theme settings
    • less/scss
    • how to...
  • open source
  • faq
  • search
  • search (live)
  • rss
  • blog
  • sitemap
home » getsimple » navigation » independent menus

Multiple independent menus

If you need multiple independent menus, you can create (empty) dummy root pages and arrange all menu items below either of them, e.g.

menu1
   item1-1
   item1-2
   ...
menu2
   item2-1
   item2-2
   ...

Then to display a menu, use the following code (here for menu1):

<ul>
<?php
  $bc = return_i18n_breadcrumbs(return_page_slug());
  get_i18n_navigation($bc[0]['url']=='menu1'?return_page_slug():'menu1',1,99);
?>
</ul>

Unless you use reasonable names for the dummy pages, you should probably not use the %parent% page in the custom permalink structure.

(If all but one of the menus are rather static, you could also hardcode them into your template instead)

 

© 2025 mvlcek online
Powered by GetSimple