定制 i-lateral/silverstripe-sessionmessenger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

i-lateral/silverstripe-sessionmessenger

最新稳定版本:1.3

Composer 安装命令:

composer require i-lateral/silverstripe-sessionmessenger

包简介

A session based message notification for Silverstripe templates

README 文档

README

Travis Support

Session based messaging module for Silverstripe (framework and CMS).

Author

This module was created by i-lateral.

Installation

Install this module either by downloading and adding to:

[silverstripe-root]/sessionmessenger

Then run: http://yoursiteurl.com/dev/build/

Or alternativly add to your projects composer.json

Usage

Once installed, you send a session message at any time using:

Controller->setSessionMessage("success", "Message text");

You can then render messages into your template using the varible:

$SessionMessage

Adding extra css classes to your message

By default the message displays the classes "message" and "message-{$Type}"

You can also add extra classes to the message (for custom styling) by using the following config variables:

SessionMessenger.extra_classes
SessionMessenger.success_classes
SessionMessenger.error_classes
SessionMessenger.info_classes

Extra Classes adds the classes you specify to all versions of the message

Success Classes adds the classes only when the message's type is set to "success"

Error Classes adds the classes only when the message's type is set to "error"

Info Classes adds the classes only when the message's type is set to "info"

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-04-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固