Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Replace the fixed header menu by the tree

Override pagelayout/header/main_menu.tpl to list the children of the root node by class; tested code.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/examples/redesign/menu-from-the-tree.md

On this page

Replace the fixed header menu by the tree

Sections join the menu by being published.

Life cycle: Redesign, example 5 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.

Contents

  1. In the Layouts editor
  2. With templates
  3. Which to choose
  4. Check

In the Layouts editor

Nothing in the Layouts editor; MainMenuID[] is no longer read by your template.

With templates

  1. Follow A header menu that follows the tree: settings [MySiteMenu], the template, the activation order, the cache clear.

Which to choose

Decide the length limit with the design.

Check

  • A new folder below the root appears in the menu.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x