Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Remove the "Delete from draft site" button

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1153 Views
  • DeklinKelly
    Avatar
    Community Member
    197 Posts

    Remove the "Delete from draft site" button Link to this post

    I use the following code to remove delete and publish buttons. How do I remove the "Delete from draft site" button?

    <?php

    class GlobalContent extends SiteTree {

       function canDelete(){
          return false;
       }
       function canPublish(){
          return false;
       }
    }

    ?>

  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Re: Remove the "Delete from draft site" button Link to this post

    I would also like to know this. I have setup some pages as Page Folders, that are not published, but have pages inside (or one level nav down) that will be published.

    These main unpublished folder type pages need to be unpublished, but never deleted.

    Anyone run into the answer to remove the Delete from draft site button?

    1153 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.