2017 © Pedro Peláez
 

silverstripe-module silverstripe-custommenus

A Silverstripe module allowing you to create custom menus that can be gernated in the front end of your site.

image

henrypenny/silverstripe-custommenus

A Silverstripe module allowing you to create custom menus that can be gernated in the front end of your site.

  • Tuesday, January 26, 2016
  • by Henry
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 3 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Custom Menus

Developer

Developed and maintained by i-lateral, (*1)

Requirements

SilverStripe 3.1 or greater., (*2)

Installation Instructions

Downloading the module:, (*3)

  1. Download and add the module to the "custommenus" folder in your SilverStripe root folder, (*4)

  2. Run dev/build?flush=all, (*5)

  3. Visit admin/menus/ to setup your custom menus, (*6)

  4. In you template, use: , (*7)

You can also download and install this module using composer and packagist, (*8)

Usage

Once the module is downloaded and installed, you can create menus and add pages to them using the "Menus" page in the admin interfacve., (*9)

To render these menus in your templates, you can either:, (*10)

Add $RenderCustomMenu(menu-slug) to your template code. This will make use of the CustomMenu.ss include to render a UL (with a unique class name)., (*11)

Alternativley you can generate your own template by adding the following code:, (*12)

<% if $CustomMenu(main-menu) %><ul class="menu">
    <% loop $CustomMenu(main-menu) %>
        <li class="$LinkingMode $FirstLast">
            <a href="$Link">$MenuTitle</a>
        </li>
    <% end_loop %>
</ul><% end_if %>

The Versions

26/01 2016

dev-master

9999999-dev http://github.com/i-lateral/silverstripe-custommenus

A Silverstripe module allowing you to create custom menus that can be gernated in the front end of your site.

  Sources   Download

BSD-3-Clause

The Requires

 

navigation silverstripe menus nav

26/01 2016

dev-null-pages

dev-null-pages http://github.com/i-lateral/silverstripe-custommenus

A Silverstripe module allowing you to create custom menus that can be gernated in the front end of your site.

  Sources   Download

BSD-3-Clause

The Requires

 

navigation silverstripe menus nav

23/11 2015

1.0.1

1.0.1.0 http://github.com/i-lateral/silverstripe-custommenus

A Silverstripe module allowing you to create custom menus that can be gernated in the front end of your site.

  Sources   Download

BSD-3-Clause

The Requires

 

navigation silverstripe menus nav

23/01 2015

1.0.0

1.0.0.0 http://github.com/i-lateral/silverstripe-custommenus

A Silverstripe module allowing you to create custom menus that can be gernated in the front end of your site.

  Sources   Download

BSD-3-Clause

The Requires

 

navigation silverstripe menus nav

12/11 2013

dev-SS-3.0.x

dev-SS-3.0.x http://github.com/i-lateral/silverstripe-custommenus

A Silverstripe module allowing you to create custom menus that can be gernated in the front end of your site.

  Sources   Download

BSD-3-Clause

The Requires

 

navigation silverstripe menus nav