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.

Customising the CMS /

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

Remove Unpublish but keep Publish


Go to End


1406 Views

Avatar
DeklinKelly

Community Member, 197 Posts

4 August 2010 at 7:11am

I understand that you can control the ability to publish a page like this:

function canPublish(){return false;}

I want users to be able to publish pages however I do NOT want them to be able to UNPUBLISH pages.

How can I remove the "Unpublish" button but keep the "Save and Publish" button?