Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Content Approval / Workflow

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2359 Views
  • jimbomaha
    Avatar
    3 Posts

    Content Approval / Workflow Link to this post

    Hi,

    I'm currently working on a site where the client needs to have a workflow/content approval process. So a user/group can edit content but can only save, not publish the content to the live site.

    Then another user/group (admin/editor) would be able to approve the content and publish.

    I've heard that this feature is built into silverstripe, but I can't find a way of implementing it, or documentation on this feature?

    Is this something that is built into silverstripe? And if so, how is the workflow/content approval done?

    Thanks!

    James

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Content Approval / Workflow Link to this post

    The ability to do this is in SilverStripe. You'll want to declare canPublish() in your Page class with something similar to:

    function canPublish() {
       return Permission::check('ADMIN');
    }


    Which would only allow an admin to publish a page, but any other group can still edit it.

  • jimbomaha
    Avatar
    3 Posts

    Re: Content Approval / Workflow Link to this post

    Thanks simon, this may sound like a really stupid question...but where would I edit this file?

  • adiwidjaja
    Avatar
    Community Member
    14 Posts

    Re: Content Approval / Workflow Link to this post

    That's in mysite/code/Page.php.

    Cheers,

    Andy

    2359 Views
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.