Menu Setup
OneEntry Headless CMS allows you to create tree-like (with nesting) navigation structures.
The menu structure is based on the pages already present in your project.
You can choose:
- Which pages will be included in the menu
- In what order they will be displayed to the user
- Child pages that form the nesting of the menu
Name and Marker
You can change the menu name and its marker in the two corresponding blocks presented on this page.
Since the marker is used by the source code of your application, make sure that changing it does not lead to malfunctions in the technical part of your application
Menu Structure
The menu structure configuration block is a list of pages with additional tools.
The "Show Menu" flag is responsible for toggling the view of the menu list. If the flag is not activated, all pages created in the project will be displayed in the list. If the flag is activated by checking the corresponding box, the list will transform and display only those pages that are included in the menu, preserving their sequence and nesting. Add pages from which you want to form the menu with the "Show Menu" flag turned off. Configure the structure of the selected pages with the "Show Menu" flag activated.
On the right side, above the list, there are two counters. The "Pinned Menu Items" counter will indicate the number of pinned pages. The "Included in Menu" counter will indicate the number of pages added to the menu.
Below is a list of pages with tools. Each of the tools will be discussed in more detail below.
Menu Configuration
Adding Pages
If the "Show Menu" flag is not activated, the menu block will reflect all pages created in the project.
Select the pages you want to add to the menu and activate them using the toggle .
Some pages may contain child pages, forming a tree structure.
You can add child pages to the menu by opening their list at the parent page, clicking on , and then selecting the necessary pages from the opened list.
If you need to add all child pages, click on the parent page's icon .
Changing the Order of Menu Items
You can also configure the order in which menu items will be displayed.
Activate the "Show Menu" mode in the upper left part of the menu.
Grab the menu item you want to move by clicking and holding the icon , and then move this item.
Changes will be saved automatically.
The order set by the user is not taken into account in the general list of pages.
Pinning Menu Items
You can pin a menu item by clicking on the icon .
Menu Title
The title of the menu item can differ from the page name. It can be configured by going to the page section in the left menu, selecting the desired page from the list, and going to the editing section of that page.
In the "Main Data" subsection, in the "Details" block, there is a form "Menu Item Title for the Page". Enter a new menu item title for this page.
Changes will be saved automatically.
Nesting
The menu supports nesting, thereby forming a tree structure. To create nesting at the menu level, nesting must be created at the page level.
To do this, go to the pages section in the left menu, select the page you want to configure, and open the editing mode. Go to the "Categories" subsection and specify the parent page.
After that, you can return to the menu configuration section. The created nesting will also be displayed for the menu items.
Deleting a Menu
Go to the "Menu" section in the left menu.
Select the menu you want to delete and click on the delete icon .
Confirm the action in the pop-up window.
.