PHPackages                             dominicvonk/navigation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dominicvonk/navigation

ActiveCraft-plugin

dominicvonk/navigation
======================

Craft navigation for the website.

1.0.8(6y ago)011MITPHP

Since Jul 26Pushed 3y agoCompare

[ Source](https://github.com/DominicVonk/Navigation)[ Packagist](https://packagist.org/packages/dominicvonk/navigation)[ RSS](/packages/dominicvonk-navigation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (22)Used By (0)

Navigation plugin for Craft CMS 3.x
===================================

[](#navigation-plugin-for-craft-cms-3x)

[![PHPCS check](https://github.com/fatfishdigital/Navigation/workflows/PHPCS%20check/badge.svg?branch=master&event=push)](https://github.com/fatfishdigital/Navigation/workflows/PHPCS%20check/badge.svg?branch=master&event=push)

Craft navigation plugin for the website.

[![Screenshot](resources/img/pluginlogo.png)](resources/img/pluginlogo.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require fatfish/navigation

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Navigation.

Navigation Overview
-------------------

[](#navigation-overview)

Navigation is a simple menu builder for Craft CMS 3.x

[![Screenshot](resources/img/Navigationplugin.png)](resources/img/Navigationplugin.png)

1. Click on create Menu, Give your menu a name.
2. Choose your entries by clicking on entry button or click on external link if you want add external link
3. Save Menu

Voila you are done !.

Templating
----------

[](#templating)

**craft.Navigation.render()**

craft.Navigation.render() lets you build a menu with pre-built static templates. This function takes two parameters, menu name "menu\_name" and menu styling options.

Menu style options contains arrays which have a 'div', 'ul', 'li', and 'a' element. Each element can have their own CSS class.

```
    {{craft.Navigation.render('menu_name',{  wrapperClass : 'navbar',
                                               ulClass: 'navbar-nav',
                                               listClass: 'nav-item',
                                               linkClass: 'nav-link'})}}

```

This plugin also lets you build menus using your own HTML and CSS, you can use it via Twig Macro.

Inorder to achieve this you need to use **craft.Navigation.getRawNav(MenuName)**

This will let you build your own HTML menu with Twig Macros.

Sample custom menu:

{% import \_self as macros %} {% macro menu(node,menuId) %} {% import \_self as macros %} {% set Grandchildren = craft.Navigation.renderChildren(node,menuId) %} {% if Grandchildren | length &gt; (0) %}

{% for grandchildren in Grandchildren %} - [{{ grandchildren.NodeName }}](){{ macros.menu(grandchildren.NodeId,grandchildren.menuId) }}
{% endfor %}
{% endif %} {% endmacro %}{% set MenuNodes=craft.Navigation.getRawNav('MenuName') %} {% if MenuNodes is defined %} {% if MenuNodes is iterable %} ```
        {% for MenuNode in MenuNodes %}

               {% if MenuNode.ParenNode == (0)  %}

                   {% if craft.Navigation.renderChildren(MenuNode.NodeId,MenuNode.menuId) is iterable %}

                           {{ MenuNode.NodeName }}

                         {% if craft.Navigation.renderChildren(MenuNode.NodeId,MenuNode.menuId) | length %}

                              {% for childrenMenu in  craft.Navigation.renderChildren(MenuNode.NodeId,MenuNode.menuId) %}

                                      {{ childrenMenu.NodeName }}
                                      {{ macros.menu(childrenMenu.NodeId,childrenMenu.menuId) }}

                               {% endfor %}

                             {% endif %}

                       {% else %}

                    {% endif %}
            {% else %}
            {% endif %}

        {% endfor %}
        {% endif %}

```

{% else %} {% endif %}

Brought to you by [Fatfish](https://fatfish.com.au)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 55.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~0 days

Total

20

Last Release

2258d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25fbd54bcf9efa660a7e2c1ad850d1334b62ed3803366ae0824acae1d2e3e2a3?d=identicon)[dominicvonk](/maintainers/dominicvonk)

---

Top Contributors

[![sailendraw](https://avatars.githubusercontent.com/u/6695806?v=4)](https://github.com/sailendraw "sailendraw (63 commits)")[![fatfishdigital](https://avatars.githubusercontent.com/u/37125277?v=4)](https://github.com/fatfishdigital "fatfishdigital (39 commits)")[![DominicVonk](https://avatars.githubusercontent.com/u/3958086?v=4)](https://github.com/DominicVonk "DominicVonk (5 commits)")[![MDXDave](https://avatars.githubusercontent.com/u/6099976?v=4)](https://github.com/MDXDave "MDXDave (5 commits)")[![WilliamIsted](https://avatars.githubusercontent.com/u/5830878?v=4)](https://github.com/WilliamIsted "WilliamIsted (2 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginnavigation

### Embed Badge

![Health badge](/badges/dominicvonk-navigation/health.svg)

```
[![Health](https://phpackages.com/badges/dominicvonk-navigation/health.svg)](https://phpackages.com/packages/dominicvonk-navigation)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[studioespresso/craft-navigate

Navigation plugin for Craft CMS

2642.6k1](/packages/studioespresso-craft-navigate)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
