i-lateral/silverstripe-systemmessages 问题修复 & 功能扩展

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

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

i-lateral/silverstripe-systemmessages

最新稳定版本:3.1.1

Composer 安装命令:

composer require i-lateral/silverstripe-systemmessages

包简介

Add popup notification messages to a Silverstripe site

README 文档

README

Build Status Latest Stable Version Total Downloads License

Module for the Silverstripe CMS that adds content manageable messages to a site (that can be closed by via a user) via a template variable.

Author

This module was created by i-lateral.

Installation

Preferable you should installl this via composer using:

# composer require "i-lateral/silverstripe-systemmessages:0.*"

Alternativley install this module by downloading and adding to:

[silverstripe-root]/systemmessages

Then run:

http://yoursiteurl.com/dev/build/?flush=1

Or:

# sake dev/build flush=1

Usage

Once installed, you must add the template variable:

$SystemMessages.RenderedMessage

to any templates you require messages to appear on.

You can manage messages in the admin area using the "Messages" tab.

Built in JS libs

By default, system messages uses lightbox_me for modal messages. This can be disabled in the config for using your own jquery, disabling this will give the message the default bootstrap modal classes.

config.yml

SystemMessages:
  use_default_js: false

_config.php

SystemMessages::config()->use_default_js = false;

Bootstrap support

All HTML uses bootstrap class names as well as custom system message ones but the modal box will not auto open on load.

To enable modal auto opening on load, change the use_bootstrap config variable:

config.yml

SystemMessages:
  use_bootstrap: true

_config.php

SystemMessages::config()->use_bootstrap = true;

统计信息

  • 总下载量: 2.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-08-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固