Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

question on WorkflowRequest::set_alert


Go to End


1005 Views

Avatar
lise

Community Member, 47 Posts

3 December 2011 at 8:14pm

I have installed CMS Worflow and I am trying to configure Email notification so an email is sent when an author request a publication.

I found here that I need to add to the config file:

WorkflowRequest::set_alert('WorkflowPublicationRequest', 'request', 'XXXX', true);

My confusion is with the XXXX parameter. The code :
function set_alert($class, $event, $group, $notify) {..} seems to imply that this must be a group but when I use :

WorkflowRequest::set_alert('WorkflowPublicationRequest', 'request', 'Administrators', true); the message "...emailed to no-one" is
displayed after every "request for Publication" and the members of this group do not receive anything.

However , when I use :
WorkflowRequest::set_alert('WorkflowPublicationRequest', 'request', 'publisher', true);
the Default Admin receives a notification (and I have no group labelled 'publisher' )

Could someone be kind enough to explain to me how this works and how I can have notifications sent to members other
than the Default Admin?

Cheers,
Lise