2017 © Pedro Peláez
 

silverstripe-module silverstripe-sessionmessenger

A session based message notification for Silverstripe templates

image

i-lateral/silverstripe-sessionmessenger

A session based message notification for Silverstripe templates

  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 13 % Grown

The README.md

Silverstripe Session Messanger

Travis Support, (*1)

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

Author

This module was created by i-lateral., (*3)

Installation

Install this module either by downloading and adding to:, (*4)

[silverstripe-root]/sessionmessenger, (*5)

Then run: http://yoursiteurl.com/dev/build/, (*6)

Or alternativly add to your projects composer.json, (*7)

Usage

Once installed, you send a session message at any time using:, (*8)

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

You can then render messages into your template using the varible:, (*9)

$SessionMessage

Adding extra css classes to your message

By default the message displays the classes "message" and "message-{$Type}", (*10)

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

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, (*12)

Success Classes adds the classes only when the message's type is set to "success", (*13)

Error Classes adds the classes only when the message's type is set to "error", (*14)

Info Classes adds the classes only when the message's type is set to "info", (*15)

The Versions

14/03 2017

dev-master

9999999-dev http://github.com/i-lateral/silverstripe-sessionmessenger

A session based message notification for Silverstripe templates

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe notification session messenger

14/03 2017

1.2

1.2.0.0 http://github.com/i-lateral/silverstripe-sessionmessenger

A session based message notification for Silverstripe templates

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe notification session messenger

08/03 2017

1.1

1.1.0.0 http://github.com/i-lateral/silverstripe-sessionmessenger

A session based message notification for Silverstripe templates

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe notification session messenger

02/06 2015

1.0.0

1.0.0.0 http://github.com/i-lateral/silverstripe-sessionmessenger

A session based message notification for Silverstripe templates

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe notification session messenger