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

Header menu and the content tree

What editors change in the header menu by working in the content tree - the item's text, its link, its place - and what needs the menu settings or a template change instead. The shipped menu is a fixed list, not a query.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/header-menu-and-the-content-tree.md

On this page

Header menu and the content tree

The header menu of the Fit & Healthy theme is a fixed list of node IDs (menu.ini [SiteInfo] MainMenuID[]), not a query on the tree. Publishing a new folder under the site root does not add it to the menu. What the list points to, though, is content, and editors control that part from the content tree.

Contents

  1. What editors change from the tree
  2. What needs the menu settings
  3. Which pages are in the menu now
  4. A menu that follows the tree

What editors change from the tree

In the content treeEffect on the header menu
Rename the page (its name field) and publishThe item shows the new name: the menu prints the node's name
Change the page's URL (URL alias)The item links to the new URL: the menu prints the node's URL alias
Move the page to another placeThe item stays and follows the page: a move keeps the node ID
Send the page to the trashThe item disappears: the template skips IDs whose node cannot be fetched

Publishing a page clears the page caches for it. If an old name still shows on other pages, clear the Content cache in the Clear cache box (Caches after a change).

What needs the menu settings

TaskWhere
Add a page to the menuAdd a header menu item
Change the orderReorder or remove header menu items
Take a page out of the menu but keep the pageRemove its ID from MainMenuID[]
A different menu per site or languageEach siteaccess has its own menu.ini; exp:ini where menu.ini/SiteInfo/MainMenuID <siteaccess>

Which pages are in the menu now

On the Fit & Healthy site (siteaccess site) the list is:

Node IDPageContent classURL
92FitnessLanding page (ng_landing_page)/fitness
130Healthy eatingLanding page/healthy-eating
144RecipesCategory (ng_category)/recipes
163RunningTopic (ng_topic)/running
164VideoLanding page/video
26210TourLanding page/exponential-live

All six are children of the site root, Fit & Healthy (node 89). Which layout a page gets is decided by Layouts > Layout mappings; the menu and the layouts are independent of each other.

A menu that follows the tree

A menu that adds every new section by itself (for example "the children of the site root of the classes Landing page, Category and Topic") is a template change: pagelayout/header/main_menu.tpl would fetch a list of children instead of reading menu.ini. That is the classic template way of building and belongs in your own design extension, so the theme stays untouched: A header menu that follows the tree has the tested code. The Layouts editor can show such a list inside a page today: a List block with a dynamic collection on a parent node.

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