http://wiki.mtcmedia.co.uk/index.php?title=Site_Menu_Plugin

This is a very simple feature that allows adding a customizable menu for site with ease. This feature is easy to use as it allows creating menu entries manually as well as dynamically generating menu entries.


## Installation ##
```
git clone https://YOUR_BITBUCKET_NAME@bitbucket.org/mtcmedia/core-plugins-sitemenu.git ~/MY_FORK/plugins/SiteMenu && rm -rf ~/MY_FORK/plugins/SiteMenu/.git

```

* Clone Static Blocks plugin from bitbucket https://bitbucket.org/mtcmedia/core-plugins-sitemenu
* Load page to launch automated installation
* In Admin > MTC Only > Admin menu move Site menu item under Content Manager or MTC Only (depending of preference)
* Set up Site Menu in admin panel
* When pushing live, make sure /plugins/SiteMenu/admin/ is opened to migrate tables
* Enjoy!

## Usage ##
Insert where needed:
```
{{ hooks_do_action('load_site_menu',  'menu name') }}

```
Change menu name to the top level menu that you created in the admin area.

Alternatively the SiteMenu tree can be fetched for alternative usages via the following method:

```
<?php
$tree = \Mtc\Plugins\SiteMenu\Classes\SiteMenu::fetchTree($root);
?>

```