2017 © Pedro Peláez
 

silverstripe-module silverstripe-comments-notifications

Simple email notifications for comments posted against the Comments module

image

tractorcow/silverstripe-comments-notifications

Simple email notifications for comments posted against the Comments module

  • Monday, January 18, 2016
  • by tractorcow
  • Repository
  • 4 Watchers
  • 10 Stars
  • 687 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Page comments email notification module for Silverstripe

This mobule provides simple email notifications for page comments, (*1)

Credits and Authors

License

  • TODO

Requirements

Installation Instructions

  • Extract all files into the 'comments-notifications' folder under your Silverstripe root.

Configuration

Using the Config set the "recipient" attribute of "CommentsNotifications" class to one of:, (*2)

  • SiteConfig (configure the email under settings globally)
  • Page (configure the recipient per page)
  • Admin (uses the admin email address)
  • Disabled
  • any email address (use this explicit email address)

E.g. MyProject.yaml, (*3)

CommentsNotifications:
  recipient: 'Page'

Extending

To hook into the outgoing email (in order to customise the template) you can extend CommentingController with an extending class with a function updateEmail, (*4)

class EmailSenderExtension extends Extension {
    public function updateEmail(Email &$email) {
        $email->populateTemplate(array(
            'SiteConfig' => SiteConfig::current_site_config()
        ));
    }
}

Need more help?

Message or email me at damian.mooyman@gmail.com or, well, read the code!, (*5)

The Versions

18/01 2016

3.1.x-dev

3.1.9999999.9999999-dev

Simple email notifications for comments posted against the Comments module

  Sources   Download

The Requires

 

comments silverstripe

17/12 2015

dev-master

9999999-dev

Simple email notifications for comments posted against the Comments module

  Sources   Download

The Requires

 

comments silverstripe

24/09 2013

3.1.0

3.1.0.0

Simple email notifications for comments posted against the Comments module

  Sources   Download

The Requires

 

comments silverstripe