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

Move a hard-coded menu into settings

An old template with links typed into it becomes a MainMenuID[] list read by the theme's main_menu.tpl.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/examples/migrate/migrate-hardcoded-menu.md

On this page

Move a hard-coded menu into settings

Editors and administrators can change a menu that was code.

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

Contents

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

In the Layouts editor

Not in the Layouts editor.

With settings

  1. Collect the node IDs of the linked pages; write them with exp:ini add into MainMenuID[]; remove your override of main_menu.tpl so the theme's template reads the list.

Which to choose

Settings or the tree, not code, for menu entries.

Check

  • The menu is unchanged for visitors.

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