Menu Configuration
The OneEntry Platform 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
- The order in which they will be displayed to the user
- Child pages that form the menu's nesting
Name and Marker
You can change the name of the menu 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 any technical issues in your application.
Menu Structure
The menu structure configuration block is a list of pages with additional tools.
Checkbox "Show menu"
The "Show menu" flag is responsible for toggling the view of the menu list:
- Flag not activated — all pages created in the project are displayed in the list. This mode is convenient for adding pages to the menu.
- Flag activated — the list transforms and displays only the items included in the menu, maintaining their sequence and nesting. This mode is convenient for adjusting order and hierarchy.
The state of the "Show menu" checkbox is saved: when reopening the menu editor, the list is displayed in the same way.
After dragging items, the order of rows in the table matches the order of menu items on the site.
On the right side, above the list, there are two counters. The "Pinned menu items" counter indicates the number of pinned pages. The "Included in menu" counter indicates the number of items 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, all pages created in the project will be reflected in the menu block.
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 under the parent page, clicking on , and then selecting the necessary pages from the opened list.
Each child page is included in the menu with its toggle. If all child pages of the parent should be displayed in the menu, pin the parent item — this is described in the "Pinning Menu Items" section below.
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 that 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
Pinning a menu item automatically outputs all its child pages in the menu.
To pin an item, click on the page icon with the tooltip "Automatically output all child". You can only pin a page that is already included in the menu.
To unpin, click on the same icon again — for the pinned item, it will have the tooltip "Turn off automatic inclusion of child pages".
The number of pinned pages is shown by the "Pinned menu items" counter above the list.
Menu Title
The title of a 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 then going to the editing section of that page.
In the "Basic data" tab, in the "Details" block, there is a field "Name of the menu item for the page". In the list of pages, this value is displayed in the "Menu Title" column. Enter a new title for the menu item for this page.
Changes will be saved automatically.
Nesting
The menu supports nesting, thus 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.
Custom Menu Items
In addition to pages, you can add custom items to the menu — for example, a link for which there is no page in the project.
The "+ Add Menu Item" button appears above the list when "Show menu" mode is enabled. Click on it and fill in the fields in the modal window:
- Name — the name of the item, a required field;
- Value / URL — the value or link of the item, a required field.
Click "Save" to add the item, or "Cancel" to close the window without saving. The new item will appear in the list along with the menu pages, and it can be moved just like the pages.
For a custom item, two actions are available in the row:
Edit — opens the same window to change the name and value of the item
Delete — removes the item after confirmation
If a custom item has nested items or pages, when deleting, you need to choose an option:
- Delete this item only — delete only the item itself;
- Delete item + nested items and pages — delete the item along with the nested custom items, while excluding the nested pages from the menu. The pages themselves are not deleted.
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.