Deliver superior customer experiences with an AI-driven platform for creating and deploying cognitive chatbots
Deliver Awesome UI with the most complete toolboxes for .NET, Web and Mobile development
Automate UI, load and performance testing for web, desktop and mobile
A complete cloud platform for an app or your entire digital business
Detect and predict anomalies by automating machine learning to achieve higher asset uptime and maximized yield
Automate decision processes with a no-code business rules engine
Optimize data integration with high-performance connectivity
Connect to any cloud or on-premises data source using a standard interface
Build engaging multi-channel web and digital experiences with intuitive web content management
Personalize and optimize the customer experience across digital touchpoints
Build, protect and deploy apps across any platform and mobile device
Rapidly develop, manage and deploy business apps, delivered as SaaS in the cloud
The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
Ok, this will be a ridiculously simple and short post. This, precisely, is the reason why you should buy a CMS and not build one on your own. In this post, we will turn on the workflow for our products module in no more than two steps and less than five minutes.
NOTE #1: As always, this post is a part of the sequential series so I assume you have set up the project as it was described in the introductory article and that you have enabled permissions on your module as I have described in this article.
NOTE #2: Workflow feature is not available in the Community version of Sitefinity.
Even though I don’t suspect that I need to explain what workflow control is, let me just briefly illustrate with two screenshots, what exactly we are about to do. Namely, we want to be able to control who can create, who can approve and who can publish the products. Once we turn on the workflow, new buttons, similar to the one in Figure 1, will appear in the view mode of our product.
Figure 1: after creating the product, a “Send for approval” button has appeared in the view mode
To determine who can do what in the workflow process, we will also enhance our permissions control with two additional permissions: Approve and Publish. Once we are done with that, our Permissions View control will look like the one on Figure 2: Figure 2: Permissions control of the products module, after we have enhanced it with workflow permissions
In order to enable workflow on the products module, all we have to do is open web.config and set the allowWorkflow property of the products generic content provider to true. Navigate to this element in web.config – telerik/cmsEngine/providers and modify the products provider element to look as this:
And we are done with the step 1.
The second step is to enable workflow permissions, which are already present in the permissions template and only need to be uncommented. Open following file in your project: ~/Sitefinity/Admin/ControlTemplates/Products/ControlPanelPermissions.ascx
And uncomment the last two permissions, marked by “Uncomment this block when using workflow”. Here are the lines I am referring to and which should be uncommented:
View all posts from The Progress Team on the Progress blog. Connect with us about all things application development and deployment, data integration and digital business.
Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.