![]() TODO: update this section when Rules: Form Events is available for Drupal 7 Add another condition: "Data comparison".Add another condition: "User has role(s)".Click "Next", select "Article" from the content types and click "Save".On the resulting page click "Add a condition" and select "Content has type".Fill out the label with "Publish article" and select "Before saving content" from the event box.Go to the triggered rules page (admin/config/workflow/rules) and click on "Add a new rule". ![]() We want to publish the content, if a publisher sets the Workflow field to "Published". Go to the users page (admin/people), edit users and assign them editor or publisher roles, when appropriate.Do exactly the same for the "Publisher" role.Click "edit permissions" of the Editor role and grant the following minimum permissions:.Fill out the empty text field with "Editor" and click "Add role".Go to the user roles page (admin/people/permissions/roles).Go to the configuration page of the article content type (admin/structure/types/manage/article), under "Publishing options", deactivate the checkbox "Published" and click "Save content type" (we do not want to publish content by default, we will do publishing rule-based).Ĭreate user roles "Editor" and "Publisher".Go to "admin/modules" on your site and activate "Rules", "Rules Administration UI", "Rules Scheduler", "Field Permissions", and "Entity API" modules.Make the field required by checking the "Required field" box.Īctivate the Rules & Field Permissions modules.In the next form, check all the permissions and set the allowed values to:.Fill out a new field with "Workflow" as label, "workflow" as machine readable name, select "List (text)" as data type and select "Select list" as form element.Go to the "Manage fields" page of the Article content type (admin/content/node-type/article/fields).Based on the instructions at Modules needed
0 Comments
Leave a Reply. |