This project is read-only.

How to hide Publish/Unpublish Options of Content List View for specific item

Topics: Core, Customizing Orchard, Writing modules
Mar 18, 2015 at 12:42 PM
I want to be able to stop admin user from Publishing, Unpublishing and Deleting content items, based on ContentType settings and some other criteria. These buttons appear in two places in Content Item List View:
  1. On the the top of the Content Item List View, in dropdown labeled as Actions for bulk action.
  2. In front of every content item, to apply action on that specific item.
So even if I hide link buttons for Publish, Unpublish, Delete etc., which are in front of each content item, by applying alternate for SummaryAdmin view, user can still publish or unpublish or delete from the action drop down.

Please suggest how to stop user from performing these actions in more orchard way of doing things.