plumpss/menus
最新稳定版本:0.2.0
Composer 安装命令:
composer require plumpss/menus
包简介
Custom menus module for SilverStripe.
关键字:
README 文档
README
#Custom menus module for Silverstripe
This module adds a Menus section to the SilverStripe admin panel that you can use to create any number of custom menus to use within your templates.
Menu items are links to pages, selected via a tree dropdown. By default, each item uses the page’s title as its MenuTitle but this can be overriden in the CMS.
##Installation
composer require plumpss/menus
Remember to rebuild your database with /dev/build?flush=all
##Usage
Each menu needs a slug (ID) that can then be used from the template. E.g. for a slug of 'footer':
<% if CustomMenu(footer) %>
<ul>
<% loop CustomMenu(footer) %>
<li><a href="$Link">$MenuTitle</a></li>
<% end_loop %>
</ul>
<% end_if %>
统计信息
- 总下载量: 556
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-24