-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Michael Witwicki edited this page May 17, 2016
·
2 revisions
Navigation module for Craft CMS
- Flexible navigations made up of assets, categories, custom urls and entries (singles, channels and structures).
- Output a simple nested unordered list or create custom html for your navigation.
- Custom field groups per navigation.
- Limit node visibility to specific User Groups.
- Dynamic navigation based on current active node.
- Easily create breadcrumbs.
Outputting simple nested unordered lists can be as simple as:
{{ craft.navee.nav('mainNavigation') }}
Or you can roll your own HTML:
{% set navConfig = {
'startwithActive' : true,
'maxDepth' : 2,
'activeClassOnAncestors' : true,
'ancestorActiveClass' : 'activeAncestor',
} %}
{% set navigation = craft.navee.getNav('mainNavigation', navConfig) %}
<ul>
{% nav node in navigation %}
<li{% if node.class %} class="{{ node.class }}"{% endif %}>
<a href="{{ node.link }}">{{ node.title }}</a>
{% ifchildren %}
<ul>{% children %}</ul>
{% endifchildren %}
</li>
{% endnav %}
</ul>
Read more about your tag options.
Navee comes with lots of great options for configuring your navigation. Read about all parameters.