WebEditor::OldFeatures::Notify - notify functions
use mixin 'WebEditor::OldFeatures::Notify'; $oldcontroller_objecy->notify($action, ...);
To setup the notify function in the web.editor, just add the line
notify => { all => "admin" },
to the features list in WEprojectinfo.pm. The hash consists of action keys and receivers values. The receivers may be a single string or an array of strings. These strings should either denote
An internet email address (recognized with a @ in it).
@
A web.editor user.
A web.editor role/group. A user specification has always priority over a same-named role/group.
to send the notify message to. The actions may be:
All notifyable actions.
A release action (e.g. saving and releasing a page, releasing a folder recursively).
A publish action (manually from a user or automatically from a daemon) of the wohole site.
A publish action for a folder only.
A page was deleted.
Another example:
notify => { "all" => "admin", "publish" => ["chiefeditor", 'webmaster@example.com'], },
Slaven Rezic
To install WE::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WE::DB
CPAN shell
perl -MCPAN -e shell install WE::DB
For more information on module installation, please visit the detailed CPAN module installation guide.