silverstripe-modular-project/silverstripe-menus

This package is abandoned and no longer maintained. The author suggests using the gorriecoe/silverstripe-menu package instead.

Creates multiple menus.

dev-master 2017-05-02 03:41 UTC

README

Installation

Composer is the recommended way of installing SilverStripe modules.

composer require silverstripe-modular-project/silverstripe-menus

Requirements

  • silverstripe/framework 3.5.*
  • silverstripe-australia/gridfieldextensions 1.3.*
  • silverstripe-modular-project/silverstripe-links 1.0.*

Maintainers

Creating custom menus

As it is common to reference MenuSets by name in templates, you can configure sets to be created automatically during the /dev/build task. These sets cannot be deleted through the CMS.

MenuSet:
  sets:
    main: Main menu
    footer: Footer menu

Adding links to menus

Once you have created your menus you can add links.

Usage in template

<ul>
    <% loop MenuSet('footer') %>
        <li>
            {$Me}
        </li>
    <% end_loop %>
</ul>