PHPackages                             silverstripe/content-notifier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. silverstripe/content-notifier

ActiveSilverstripe-module[Admin Panels](/categories/admin)

silverstripe/content-notifier
=============================

Notifies admins of new user-generated content

1.0.x-dev(7y ago)71017[1 issues](https://github.com/silverstripe/silverstripe-content-notifier/issues)BSD-3-ClauseScheme

Since Jul 4Pushed 5y ago8 watchersCompare

[ Source](https://github.com/silverstripe/silverstripe-content-notifier)[ Packagist](https://packagist.org/packages/silverstripe/content-notifier)[ Docs](https://github.com/silverstripe/silverstripe-content-notifier/)[ RSS](/packages/silverstripe-content-notifier/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

SilverStripe Content Notifier Module
====================================

[](#silverstripe-content-notifier-module)

Maintainer
----------

[](#maintainer)

Aaron Carlino (aaron at silverstripe dot com)

Description
-----------

[](#description)

The Content Notifier module is used to allow moderation of user-generated content on websites running SilverStripe. When content is created or updated, an admin is notified and can approve the change. How strict the approval process is and who gets notified and how often is all configurable.

Usage
-----

[](#usage)

- Install with composer: `composer require silverstripe/content-notifier`
- Build and flush: `/dev/build?flush=1`
- Add the extension `ContentNotifierExtension` to any DataObjects you want to use the notifier. The DataObject class receiving the extension **must implement the `SilverStripe\ContentNotifier\ContentNotifier` interface**.

### Requirements

[](#requirements)

As defined in the `ContentNotfifer` interface, you must add the following methods to your DataObject:

- `getContentNotifierExcerpt()`: The summary of content that will be displayed in the notification email.
- `getContentNotifierLink()`: The link to edit this record in the CMS.
- `getContentNotifierHeadline()`: The title of the DataObject that will appear in the notification email

#### Example

[](#example)

```
