Introduction
Although approve and publish permissions are disabled in the Generic Content based modules by default, which include the Generic Content, News, Blogs, Images and Documents and Events modules, these permissions can be enabled by editing the PermissionsView template.
Editing the Template
To add the necessary permissions, you must map the template and uncomment code by following these steps:
1. Create the following file in the ~/App_Data/Configuration directory : Telerik.Sitefinity.Configuration.ControlsConfig.xml
2. Add the code below to that file:
3. Open your project Web.config file and make a change, such as pressing the space bar and backspace. This will rebuild the project and tell Sitefinity to use the PermissionsView.ascx template instead of the embedded templates
4. Login to your
Client.net account and click on downloads
5. Download this file:
6. Unzip that download and copy this files
\Sitefinity\Admin\ControlTemplates\News\App_LocalResources\PermissionsView.ascx.resx \Sitefinity\Admin\ControlTemplates\News\PermissionsView.ascx
Into this directory in your Sitefinity project:
PermisionsView.ascx.resx - \Sitefinity\Admin\ControlTemplates\News\App_LocalResources PermissionsView.ascx -
\Sitefinity\Admin\ControlTemplates\News\
7. In the ~/Sitefinity/Admin/ControlTemplates/News/PermissionsView.ascx file in your project, uncomment the lines below this phrase:
******* Uncomment this block when using workflow ********
8. Assign roles approve and publish permissions as shown below:
9. In your Web.config, find this line of code:
10. Add this attribute to enable module workflow for news content:
Although the example above uses the news module, the same template exists for the other Generic Content based modules. The only thing that will change is the template mapping and the location of PermissionsView.ascx, which would be in the ~/Sitefinity/Admin/ControlTemplates/Events folder of the templates download. For more info on mapping templates,
please refer to this article.