# Navigation

Navigation is the fastest way to put together a list of elements to give your users easy access to the key points of your site.

Navigation builder

In this section you will find a nested list of elements, which correspond to the items that will appear on the site when using the tag {% menu%} in Template builder.

The menu builder only allows three levels of depth, so you can have a main list and sub items on each of the main items.

At the top of the view, you will find the publication status of the menu:

  • Published: This status means a widget is published and the version in the editor contains no unpublished changes.
  • Pending changes: You will see this status if there is already a published version, but there are pending changes to be published in your editable version.
  • In review: You will see this status when team review is enabled and the editable version has been submitted for review.
  • Approved: This status appears when Computer Review is enabled and if the item's review conditions were met. If it is in this state, your templates can now be published.

On the right side of the upper bar, you will find the latest publication date and the available actions:

Preview : Clicking this icon opens a new tab with the menu preview mode, in which you can see as if all the changes you have in your menu were published.

Attention

You can preview the changes as a user without a session, or with Modyo a session. For this, it's recommended to log in or log out of Modyo from your site before entering preview mode, because if you log out while in preview mode you might encounter security errors like x-frame-options or mixed-content, depending on your site's SSL and custom domain settings.

Warning

The menu created can be displayed on any page if and only if it is added to a page through a published template, otherwise the menu is never requested and won't appear on the page.

Differences : By clicking on this icon, you will open the differences view, in which you can compare the changes between multiple versions of your menu.

By default you will start comparing the published version with the editable version, but by using the version selectors, you can also compare previous versions as well.

Tip

Every time you publish and replace the current version, the replaced version becomes a "backup" or previous version.

By default, up to 20 backups are saved so that the twenty most recent backups can be compared, restored, and rolled back.

For more information on versioning, check out the versioning section.

Activity/Comments : Only enabled if you have team review enabled. When clicked, it displays a sidebar with the activity history and comments of the menu.

You can add comments by submitting them at the bottom of the sidebar. Next to each activity, you can click on "Show details" to show the complete information of that particular activity log.

# Create a new Menu

To create a new Menu, follow these steps:

  1. From the Modyo Platform main menu, expand Channels and click Sites.
  2. Select the site you want to add a new menu.
  3. Click on Navigation.
  4. Click on + New Menu.
  5. Fill in the name and identifier and click on Create.
  6. Customize the menu by adding or editing items.
  7. Once finished, click on Publish.

Tip

Your menu is now public but needs to be requested from a template before it can be displayed. Modyo offers a general snippet in Snippets, General, menu and is called in the base template using {% snippet 'shared/general/menu'%}.

For more information on how to create and publish a custom menu, see Creating Mega Menu

Primary Actions

  • Save: Save all menu changes.
  • Send to review: Changes the menu status to "In review". In this state you can continue making changes, but each change alerts assigned reviewers via email.
  • Reject: Returns the status to "Pending changes" and notifies reviewers that the item was rejected.
  • Publish: Once the changes are approved, you can go to the publish view to review and publish changes across the site.

In the right side section, you will see a bar that changes according to the item selected in the main area. In this section are the following options:

  • Name: Name of the item as it appears on the site.
  • Associated Layout Page: Directly associate a page to this menu item with a custom URL.
  • URL: If you chose a custom URL in the "Associated Layout Page", you can specify the URL of this menu item.
  • Open in new tab: Enable this option to open a the menu item link in a new tab. Adds the target='blank' attribute to the menu item's HTML.
  • Private: Makes the selected item appear visible only when the user has an active session on the site.
  • Segments: If there are segments created, you can also segment this element so that users can see this menu item only when they have an active session and are also within the selected segments.