plumpss/menus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-24