menu

The Navigation Menu

The menu can be either alphabetical or ordered manually. This is a change in Version 7.0 onwards. Previously the menu was listed only alphabetically but setup now includes the manual option. Select in Setup. Either way the home page is always at the top and the contact page (if used) at the bottom.

The menu text is (and must be) exactly the same as the page filenames listed under Existing pages. When the menu is displayed on the website the text is automatically capitalised and hypens are replaced with a space.

'Get the menu' and 'Save the menu'

The menu can always be edited manually to change the order or to add/remove menu items but it will display alphabetically if the alphabetical option is selected. Otherwise it will display in the order listed by 'Get the menu' in admin.

Menu 'anchor' text

From Version 7.12 onwards navigation menu can be edited so that the text displayed is whatever you choose. In the 'Pages' section of Admin click 'Get the menu' and add the text enclosed in square brackets immediately after the page title text, as in the following example (screenshot):

Then save the menu. In the example above the menu text for the page titled 'articles' will be displayed as 'Menu Text' in the navigation menu. You can choose the menu text (known as 'anchor text') for all the pages in the navigation menu.

The page names in the menu are created automatically when a page is created or edited and must match the page title (URL) exactly for the navigation menu to work. If a page name is preceded by a # hash symbol the page will not appear in the navigation menu (and vice versa). The # hash symbol can added or removed manually with 'Get the menu' and 'Save the menu'.

If you accidentally change a page name in the menu you can restore it by manually deleting it from the menu file ('Get the menu' and 'Save the menu') then updating the page with a % percent symbol in the banner text.

For info: the menu file is /inc/inmenu.txt. The file is not in the download but is generated the first time a new page is created.

More about the navigation menu »

Page last modified: October 04, 2018

Get the files (ZIP)

Downloads since
September 2011:

18,173