Unlock the secrets to creating intuitive menus for your website using JustCMS.
The navigation module in JustCMS provides complete control over your website’s menus, all accessible through the intuitive admin panel. Whether you need simple navigation or complex nested submenus, this module makes it easy to organize your content effectively.
To begin, navigate to the Menus section in the left sidebar of the admin panel. Once there, click the Create button to start building a new menu.
The menu creation form requires you to fill out two essential fields:
Name: The display name for your menu (e.g., "Main Menu").
ID: A unique identifier for the menu (e.g., "main"). This ID will be used later to retrieve the menu via the API.
For example, you might name your menu "Main Menu" and set its ID as "main." Once these details are entered, save your new menu to proceed.
After creating the menu, you can add items to it. Click the Add Menu Item button to start. Each menu item requires:
Title: The text displayed for the item.
URL: The link destination, which can be a full URL or a route for the frontend.
Additionally, you can include:
Subtitle: Optional descriptive text.
Icon: A text string like “home” or even full SVG content for enhanced visual appeal.
To create submenus, simply add items beneath a parent item. This structure supports as many levels as you need, though 2-3 levels are typically sufficient for clear navigation.
Once your menu is built, you can access its details through the API. Refer to the API documentation to find the endpoint for retrieving menu data using the menu’s unique ID. This feature allows you to integrate menus seamlessly into your website or mobile application.
The navigation module supports multiple menus, enabling you to create tailored navigation systems for different projects. Its simplicity and flexibility make it an invaluable tool for building effective menus that enhance user experience.
With the navigation module in JustCMS, creating and managing menus has never been easier. From basic items to nested submenus, the module empowers you to design intuitive navigation for any project. We hope this guide has been helpful—happy menu building!