Skip to main content

Introduction

Menus are a key part of your site's structure and navigation. They give visitors a way to move between sections of your application and find the information they need.

On the OneEntry platform, you build the menu structure directly in the admin panel. You can change which pages a menu includes, their order, and their titles without changing your application's source code.

If needed, you can also nest menu items to create a tree structure with sections and subsections.

Menus are built from pages.

You can define:

  • Which pages the menu includes
  • The order in which they are shown to the user
  • The title of the menu item that links to a page
  • How menu items are nested (tree structure)

Some of these concepts were covered in the pages section, and some page settings affect the menu structure you can build from those pages. This section covers them in more detail.

In the left vertical menu, open the "Menu" section. It lists all menus and has a form for creating a new one.

Creating a menu​

To create a menu, go to the "Menu" section. The form for creating a new menu is at the bottom.

Fill in:

  • Name: a non-unique string. It can be in any format. The name is used within the OneEntry platform to tell one menu from another, so choose names that make your menus easy to work with.
  • Marker: a unique string. It is used to access the menu from your application's code. Follow the syntax of the language your project is written in to avoid errors. For example, some languages may not support hyphens in variable declarations. In that case, use "main_menu" instead of "main-menu".

Click "Add". If all fields are filled in correctly, the menu is created and added to the list of menus above the form.

Configuring a menu​

To configure a menu, go to the "Menu" section. Find the menu you want to edit in the list and click the edit icon Edit to open its editing subsection.

The editing subsection has two tabs: "Menu", for configuring the menu itself, and "Version History", for the menu's change history.

The tools for configuring a menu are covered in more detail in the next article.

Deleting a menu​

To delete a menu, go to the "Menu" section.

Find the menu you want to delete in the list and click the delete icon Delete.

Confirm the action in the dialog.