Navigation module for Craft CMS
PHP HTML Other
Permalink
Failed to load latest commit information.
controllers
elementtypes
migrations Fix to migration to remove SEOmatic reference Sep 23, 2016
models 1.2 Additions/Bug Fixes Jan 13, 2017
records Regular Expression Field + Tabbed Edit Node Sep 23, 2016
resources
services Replace __home__ in nodes linked to homepage entry. Jan 17, 2017
templates Regular Expression Field + Tabbed Edit Node Sep 23, 2016
variables
.gitignore 1.2 Additions/Bug Fixes Jan 13, 2017
LICENSE.txt Tiny tweak to license May 17, 2016
NaveePlugin.php Updated version and releases documentation Jan 17, 2017
README.md Update to README May 17, 2016
releases.json Updated version and releases documentation Jan 17, 2017

README.md

Navee for Craft CMS

Simple Navigation, Made Simple. Build any kind of navigation you like, without limitation. Rewritten from the ground up for Craft CMS.

Navee for craft control panel

Features

  • 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.

Documentation

Full documentation can be found in the wiki.

Tags

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 in the wiki.

Configuring Your Navigation

Navee comes with lots of great options for configuring your navigation. Read about all available parameters in the wiki.