Introduction
The menu is a key element of the structure and navigation of your site. With the menu, you provide visitors with a convenient way to navigate through different sections of your application and find the information they need.
In OneEntry Headless CMS, you can create the menu structure directly from your personal account. This allows you to change the set of pages included in the menu, their order, and titles without modifying the source code of your application.
Additionally, if necessary, you can create nested levels in the menu, allowing for a tree-like structure with sections and subsections.
All of this enables you to work conveniently and flexibly with the navigation of your application directly from your personal account.
At the core of the menu are pages. The menu structure is created from pages.
You can define:
- Which pages will be included in the menu
- In what order they will be presented to the user
- What title will be given to the menu item leading to a specific page
- The nesting of menu items (Tree structure)
Some of these concepts were discussed in the pages section, and some page settings affect the menu structure you can create from these pages. This section will discuss them in more detail.
Navigation
In the left vertical menu, open the "Menu" section to go to the menu page. This section contains a list of all menus, as well as a form for creating a new menu.
Creating a Menu
To create a menu, go to the "Menu" section. At the bottom, there is a form for creating a new menu.
Fill in:
- Name - a non-unique string type. The name can be in any format. The name is used for internal operations within OneEntry Headless CMS. You will distinguish one provider from another by name, so name your authentication providers in a way that makes it convenient for you to work with them.
- Marker - a unique string type. Used to access the provider within the code of your application. Consider the syntax of the language your project is written in to avoid errors. For example, some languages may not support dashes in variable declarations. In that case, it would be better to specify "my_provider" instead of "my-provider".
Click "Add" to complete the creation process. If all fields in the form are filled out correctly, the menu will be created and automatically added to the general list of menus located above the creation form.
Configuring the Menu
To configure the menu, go to the "Menu" section.
Select the menu from the list that you want to edit.
Click on the edit icon to enter the menu editing subsection.
The tools used for configuring the menu are discussed in more detail in the next article.
Deleting a Menu
To delete a menu, go to the "Menu" section.
Select the menu from the list that you want to delete and click on the delete icon .
Confirm the action in the pop-up dialog.