2017 © Pedro Peláez
 

silverstripe-module silverstripe-zenmessage

A simple extension to allow custom message/notice setting in ss applications

image

sheadawson/silverstripe-zenmessage

A simple extension to allow custom message/notice setting in ss applications

  • Tuesday, September 27, 2016
  • by sheadawson
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2,250 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

SilverStripe ZENMessage Module

Maintainer Contacts

Requirements

  • SilverStripe 3.0 +

Installation Instructions

  1. Place this directory in the root of your SilverStripe installation, make sure it's named "zenmessage"
  2. Visit yoursite.com/dev/build?flush=all.

Usage Overview

This simple module gives developers an easy way to display feedback messages to the website user., (*1)

Setting Messages

To set a message simply call the setMessage($messageType, $message) method on your controller. Passing in the message type as the first parameter and the message as the second, (*2)

$this->setMessage('success', 'You have successfully set a message');

Displaying Messages

Place the $Message variable into your page template, wherever you would like your message to be displayed. If a message has been set (using the setMessage() method) before the template is rendered, the message will be displayed., (*3)

Default Styles

Some basic default message styles can be applied by including zenmessage/css/zenmessage.css in your website or application, (*4)

Notes

  • The messageType can be any string, it's only used to give the message a css class. success, notice and error are typical messageTypes.

The Versions

27/09 2016

dev-master

9999999-dev http://github.com/sheadawson/silverstripe-zenmessage

A simple extension to allow custom message/notice setting in ss applications

  Sources   Download

The Requires

 

by Shea Dawson

silverstripe