I’m working with workflows and was hoping that i’d be able to implement a custom plugin to display the workflow status more clearly to the user editing the record.
At the moment the workflow status and selector is in the right hand panel. It actually took me a second to realise this because I assumed that it would be tied to the Publish Button in some way.
Anyway, I’d like to more clearly communicate the flow and current status to the member, and ideally this layout woudl appear at the top of the record.
- Is it possible to insert a custom view/layout to the model view for a record? i.e a hook for the top/bottom of the record view?
- I’m going to assume that the workflow data is accessible from the ctx object so i can render the fields and current status.
- If I wanted the user to be able to click the status they want to set the record to, is that similar to how you set a new value to a field? In fact, is the workflow status just a field of the record?
- Additionally, i’d like to pull the permission a user has, and compare those to the permission applied to the workflow. Is that data easily referencable from the ctx object in the plugin SDK?