thewebmen/silverstripe-menustructure

Silverstripe module to create nested menus

Installs: 2 411

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 7

Forks: 2

Open Issues: 0

Type:silverstripe-vendormodule

1.0.10 2019-12-06 08:42 UTC

README

Protect menus from deletion

TheWebmen\Menustructure\Model\Menu:
  protected_menus:
    - 'main-menu'
    - 'footer-col1'
    - 'footer-col2'
    - 'footer-col3'

Usage

Render a menu in any template using:

$MenustructureMenu('menu-slug')

Render a menu using a custom template using:

$MenustructureMenu('menu-slug', 'Menus/MainMenu')

Todo

  • Improve docs