<navigation:primary>
AJAX
Data
Forms
Layout
Logic
Navigation
ATTRIBUTES
Personalisation
Standard
Templates
Regions
Third Party

<navigation:primary> </...>

Creates a menu which can load pages dynamically from website pages.

Related Tutorials

Content

(Optional) Manually add links to appear inside the nav.

Attributes

autoPopulateLevel
int
Autopopulate Level

Sets the depth of sub menus.

Eg:
  • 0 - no auto populate.
  • 1 - Level 1: Show pages directly under RootPage.
  • 2 - Level 2: Show pages directly under RootPage, with sub-pages in a drop down.
  • 3 - Level 3: As with Level 2, with further sub-pages in an additional drop down.

Default = 1.
bootStrap
bool
Include Bootstrap Classes

If true, then Bootstrap classes will be applied to the navigation menu. (Be sure to include Bootstrap's CSS in your design).

  • Adds class="dropdown" on <li>s with dropdowns.
  • Adds class="dropdown-toggle" data-toggle="dropdown" on <a>s with dropdowns.
  • Adds class="dropdown-menu" to <ul>s with dropdowns.

Default = false.
classLiCurrent
string
CSS class to set on a nav item, when it matches the current page.
id
string
(Required) Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).
includeStyles
bool
Include Oncord Styles

Whether to include JavaScript and CSS to add drop down functionality.

Set as false to get a blank <ul><li> list
mobileBreakPoint
int
Mobile Break Point

Integer representing a pixel value which specifies the size of the viewport at which mobile navigation styles will be enabled.

Default = 700

Disabled in the Oncord Web Editor for usability.
openOnHover
bool
Open Dropdowns on Hover

If set to true, dropdown menus will appear when the mouse is hovering over the menu. If set to false, the user must click to reveal the submenu. Default = false.
orientation
string
The orientation of the pop out menu. Default = "horizontal".
Other possible values: "vertical".
preventWrap
bool
Prevent Link Wrapping

Whether primary navigation should prevent wrapping of links when there is constricted space by reverting to a mobile style menu.
Default = false

Disabled in the Oncord Web Editor for usability.
rootPage
string
The root page to populate navigation items from.
Default = "/".

Tutorials

Examples

No examples yet.