2017 © Pedro Peláez
 

silverstripe-vendormodule backendmessages

DRY way to create message boxes in SilverStripe backend.

image

friendsofsilverstripe/backendmessages

DRY way to create message boxes in SilverStripe backend.

  • Friday, April 20, 2018
  • by spekulatius
  • Repository
  • 1 Watchers
  • 3 Stars
  • 3,705 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 12 Versions
  • 5 % Grown

The README.md

Generate SilverStripe backend messages with one simple call. Type less, do more.
Build Status Latest Stable Version Latest Unstable Version Scrutinizer Code Quality Total Downloads License

Requirements

  • SilverStripe Framework ^3.0 or ^4.0

Installation

composer require friendsofsilverstripe/backendmessages

Usage

Within any FieldList you can call any of the following static methods to create a message box:, (*1)

use FriendsOfSilverStripe\Backendmessages\ErrorMessage;
use FriendsOfSilverStripe\Backendmessages\WarningMessage;
use FriendsOfSilverStripe\Backendmessages\SuccessMessage;
use FriendsOfSilverStripe\Backendmessages\NoticeMessage;
use FriendsOfSilverStripe\Backendmessages\Message;

// [...]

FieldList::create(
    ErrorMessage::create('Ehh, something went wrong.'),
    WarningMessage::create('Be careful with this!'),
    SuccessMessage::create('Yeah, that went through just fine.'),
    NoticeMessage::create('This is a useful hint.'),
    Message::generic('Some more information.')
);

generates, (*2)

, (*3)

Allow HTML in the backend messages

Add the following to your config.yml, (*4)

FriendsOfSilverStripe\Backendmessages\MessageBoxField:
  allow_html: true

MISC: Future ideas/development, issues, Contributing, License

This project is supported by bring your own ideas Ltd.. Bring Your Own Ideas Ltd. helps you to make your project ideas a reality., (*5)

bring your own ideas, (*6)

The Versions

20/04 2018

dev-master

9999999-dev https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

20/04 2018

4.0.2

4.0.2.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

10/12 2017

4.0.1

4.0.1.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

10/12 2017

4.0.0

4.0.0.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

21/10 2016

3.0.0

3.0.0.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

09/07 2016

1.0.0

1.0.0.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

18/04 2016

0.2.2

0.2.2.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

16/04 2016

0.2.1

0.2.1.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

20/03 2016

0.2.0

0.2.0.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

20/02 2016

0.1.2

0.1.2.0 https://github.com/friendsofsilverstripe

DRY way to create message boxes in SilverStripe backend.

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

13/12 2015

0.1.1

0.1.1.0 https://github.com/friendsofsilverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning

27/10 2015

0.1.0

0.1.0.0 http://silverstripe.org

  Sources   Download

BSD-3-Clause

The Requires

 

cms silverstripe message notification warning