Jump to:

11003 Posts in 2735 Topics by 1824 members

All other Modules

SilverStripe Forums » All other Modules » question on WorkflowRequest::set_alert

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 297 Views
  • lise
    Community Member
    47 Posts

    question on WorkflowRequest::set_alert Link to this post

    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?


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.