2017 © Pedro Peláez
 

silverstripe-module silverstripe-menumanager-subsites

image

guttmann/silverstripe-menumanager-subsites

  • Wednesday, February 28, 2018
  • by guttmann
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3,821 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

SilverStripe menu manager subsites integration

This module enables per subsite menu sets using Heyday's Menu Manager module., (*1)

Installation

Install via composer:, (*2)

composer require guttmann/silverstripe-menumanager-subsites dev-master

No other configuration is required. Once installed any menu sets created will be linked to the currently selected Subsite at the time of creation., (*3)

Usage

Menu sets can still be accessed from templates via $MenuSet("Your Menu Set").MenuItems but if you want to ensure each Subsite only accesses its own MenuSets you can use this in your templates instead:, (*4)

<% loop $SubsiteMenuSet("Your Menu Set").MenuItems %>
    <a href="$Link" class="$LinkingMode">$MenuTitle</a>
<% end_loop %>

The Versions