Skip to main content

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.

const config = {
token:'your-app-token',
};

const { Menus } = defineOneEntry('your-url', config)