Available Variables#

The following methods are available to call in your Twig templates:

craft.navigation.nodes(nodeQuery)#

See Node Queries

craft.navigation.render(nodeQuery, options)#

See Rendering Nodes

craft.navigation.breadcrumbs(options)#

See Breadcrumbs

craft.navigation.getActiveNode(nodeQuery, includeChildren)#

See Rendering Nodes

craft.navigation.tree(nodeQuery)#

Returns a full tree structure of nodes as a nested array.

craft.navigation.getNavById(id)#

Returns the navigation for the provided id.

craft.navigation.getNavByHandle(handle)#

Returns the navigation for the provided handle.

Previous ← Eager-Loading Next Rendering Nodes →

Get started with Navigation

Available for Craft 4. Get it from the plugin store.