Skip to main content
Logo
There is a newer version of Contensis. Click to find out more and download the latest version.

Create a menu

There are plenty of reasons why you would want a menu within a page or template of your website. Maybe you want a jump menu to link to headings on the current page or simply want a list of related items.

Menus can be added in any placeholder or template by right clicking in the editor and selecting Insert Webcontrol. Menus can be found under the Navigation sub menu.

Types of menu

We have a suite of navigation controls, of which the main types of menu are covered below. Other navigation controls are available but are not typically used as menus.

Accordion

An accordion menu contains multiple levels that are displayed when hovering over or clicking on a parent folder.

Simplemenu XML

The simplemenu XML shows all pages that exist within the current level in the navigation. It also shows items in the parent levels. You can also personalise the menu for visitors on the site based on their permissions, limiting them to only pages you have allowed them to see. There are many ways in which this menu can be configured using the web control properties which you can set when inserting the control into your template.

Local view menu

The local view menu is used when inside a very deep navigation structure. It acts almost like a breadcrumb control and a menu all at the same time. It has become very popular with local government websites. There are many ways in which this menu can be used and like all other navigation controls it uses a standardised mark-up and has many configuration options available.

Adding in menus

Adding in menu controls are always done in the same way:

  1. Right click in the Contensis editor, select Insert Webcontrol.
  2. Under the Navigation sub menu, look for the menu type you wish to add. A window will popup where you need to select the folder(s) to display in the menu, as well as any other styling options you might want to tweak or set.

Create your own menu

If none of our standard menus fit your needs then you can write your own menu using a Razor view. Here is an example of a custom local view menu. To add this to your template simply create a Razor view, paste in the code below and then drag it into your template.