The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebEditor::OldFeatures::Notify - notify functions

SYNOPSIS

    use mixin 'WebEditor::OldFeatures::Notify';

    $oldcontroller_objecy->notify($action, ...);

DESCRIPTION

SETUP NOTIFY

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 email address

An internet email address (recognized with a @ in it).

a user

A web.editor user.

a group

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

All notifyable actions.

release

A release action (e.g. saving and releasing a page, releasing a folder recursively).

publish

A publish action (manually from a user or automatically from a daemon) of the wohole site.

folderpublish

A publish action for a folder only.

deletepage

A page was deleted.

Another example:

    notify => { "all" => "admin",
                "publish" => ["chiefeditor", 'webmaster@example.com'],
              },

AUTHOR

Slaven Rezic