Workflow and Permissions for Shared Content blocks
I've created a 2 level workflow for a 5.1 site. Everything seems to work except for Content blocks. The shared content blocks seem to ignore workflow. The only button available is "save changes" no matter if the user has the ability to publish to a page.
I suspect it is a permissions problem but Content blocks is not listed in the items that I can set permissions for.
How can I get my workflow/permissions to apply to these shared Content Blocks?
Any luck with resolving this? I'm curious about this, too.
I would also like to know if there is an answer to this question.
We have a need to apply a workflow to Content Blocks
Hello Brandon,
Unfortunately the Content Blocks module does not support Workflow.
As an alternative you can try creating a dynamic module using our Module Builder and migrate the content to that module, if having permissions and workflow is an essential requirement for this project.
All the best,
Stefani Tacheva
the Telerik team
it looks like this is still the case, which is okay but I'm curious: is there a way to tell programmatically if a content module supports workflow? is this a property or flag that I can access to determine if I should publish an item through the workflow before I try to do so?
aha never mind, I got it! just look for a defined workflow in the WorkflowConfig for a contentype that matches the desired content item type:
// determine if this content type requires workflow
var workflowCofing = Config.Get<WorkflowConfig>();
var requiresWorkflow = workflowCofing.Workflows.Elements.Any(w => w.ContentType == contentType.FullName);
Hello Josh,
I am glad to hear that you managed to find a solution. Thank you for sharing it.
Regards,
Stefani Tacheva
Telerik