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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

question on WorkflowRequest::set_alert


Go to End


642 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