Force workflow commands to be available even if Sitecore Item is not locked (edit mode)

It seems like commands are not available unless the user locks the item. There are some exceptions, if you are an administrator they are always available.

When an editor edits an item and you have set AutomaticUnlockOnSaved to true, they would have to lock the item again before they can send it for approval.

A similar problem happens to the publishers. If they would want to approve or reject a workflow they would have to lock the item.

This might not seem like a big problem, but I received several complaints from editors about this, and asked Sitecore support if this is expected behaviour.

Sitecore support told me that this is expected, and they provided me with a possible solution.
  1. Create an assembly that contains a copy of ‘Sitecore.Shell.Applications.ContentManager.Panels.WorkflowPanel’ class;
  2. Override the ‘Render’ method with your definition (you can use the "ILSpy" tool for this purpose).
  3. Built and add the assembly to ‘Bin’ folder;
  4. Follow to ‘/sitecore/content/Applications/Content Editor/Ribbons/Chunks/Workflow/WorkflowPanel’ in Core database;
  5. Change the ‘value’ of ‘Type’ field to the above-created assembly. For example 'MyAssembly.WorkflowPanel,MyNamespace'.
I did the steps provided and changed the flag4 so the commands are always available

Comments

Sanjay Zalke said…
Is this complete code?
I did not understand what is being achieved by these 4/5 lines?

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