Skip workflow steps for administrators and developers

Sitecore workflows are great for publishers and editors.
However, as administrator or developer, we usually have to make changes to published items without triggering a new workflow. These changes are usually technical changes/bug fixes that needs to go live as soon as possible and does not really need to go through all the workflow steps.

Create a Publish Command to skip workflow steps

To achieve this I created a new workflow command. Publish. This command basically skips the submit and approve steps and goes directly to auto publish.

The steps:
  • Create an new Command Publish under the Draft state
  • Set next state to the Approved State
  • Set this command to suppress comments


Update the Auto Publish action to include related items

Per default the parameter for Auto publish is set to : deep=1&smart=1
I recommend setting it to: deep=1&smart=1&related=1 so related items like images are published with the same action.

Setting restrictions(security) to roles so we can control who has access to the publish command 

This command is intended to be used by administrators and developers.
The publisher role and editor role should not have access to this command, by removing read access for those roles the action will not be available.



Similar restrictions should be set for the editor role, they should not have access to the approve and reject commands.



This way the publishers would have access to approve and reject.
Editors would only have access to Submit. While admins and developers would have access to all of the above including the publish command.

Comments

Popular posts from this blog

Step by step guide to add Glass Mapper to Helix solution

Using interfaces with Glass Mapper

Adding dynamic image source for multi-site solutions with $site$ token and setting dynamic datasource location for components