Creating a Workflow for Drupal Users

Drupal Workflow

This week’s tutorial is the second of a two-parter. We’ve had several students in our classes looking to build websites with multiple content authors … blogs, newspapers, university sites and more. A common request is to improve Drupal’s default handling of nodes.

In the first part we covered how to give people easy to a list of their own nodes, using a module called workspace.

In this second part we’re going to create a workflow, allowing you to choose who has control over a node. A newspaper website is a great example – a writer may submit an article which is then passed to the copy-editor for checking and then to the editor for approval and publication.

In Part 1 we used the “Workspace” module. This time we’re using the “Workflow” module.

Installing Workflow to Your Drupal Site

  • Step 1: Visit http://drupal.org/project/workflow to download the latest version of “Workflow”.
  • Step 2: Extract the files into a folders on your desktop. The folder will be called “workflow”.
  • Step 3: Login to your site’s files via FTP and navigate to /sites/all/. If there isn’t a folder called /modules/ here, create one.
  • Step 4: Upload the “workflow” folder to /sites/all/modules/
  • Step 5: Go to Administer >> Site building >> Modules and enable Workspace.

Configuring Workflow

Go to Administer >> Site building >> Workflow and click “Add workflow”. You’ll be at the start of the process:

  • Workflow name: Enter a name for your workflow.
  • Workflow states: You’ll be asked for the different stages of the workflow. They example used by the module is “if you were doing a meal workflow it may include states like shop, prepare, eat, and clean up.” Ideally you’ll have several states. This is an example that a newspaper might use: Drupal Workflow
  • Nodes: You can then choose which nodes your workflow applies to:Drupal Workflow
  • Moving Through the Workflow: Click “Edit” next to your workflow and you’ll be able to choose which user groups are in control at which stage. The workflow moves from left to right and you are choosing who can initiate the transition from one stage to the next.  Drupal Workflow
  • Managing Nodes in the Workflow: At the very bottom of this page you can decide what control people have over the articles in each state: Drupal Workflow
  • Tab: Mid-way on this screen you’ll find “Workflow tab permissions” and you can control who sees the “Workflow” tab when they’re looking at a node. This is how your users will move article through the workflow. At the top of the nodes they will see this added tab:
    Drupal Workflow
  • Using the Workflow: Once users click on the Workflow tab, they’ll be able to change the state of the article and decide when:
    Drupal Workflow

{loadposition drupalnewsletter}

Author

  • Robbie Adair

    Robbie started her career in corporate training until starting her own custom training and media company almost seventeen years ago. In 2010, she began doing classroom training for OSTraining while running Media A-Team. She is often presenting about various tech topics such as Joomla, Fabrik, Web Development, Social Media, and Augmented Reality. She loves seeing that "ah-ha" moment in peoples eyes in her sessions and workshops. She lives in Houston, Texas, but enjoys all the travel for client work and speaking gigs.

0 0 votes
Article Rating
Subscribe
Notify of
3 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Goli Houssou
Goli Houssou
7 years ago

Cool…

workflow has seriously grown up today .. with his possibility to also use it on other entity type like User , taxonomy ,…

But sometimes i am confuse if i should use Workflow / workbench ?

daniel-pickering
7 years ago
Reply to  Goli Houssou

Yes it has been 6 years since this post the module is now capable quiet a lot more. workbench is for more specific use I would say.

nadeem
nadeem
3 years ago

nice article. Drupal 8 has more options

3
0
Would love your thoughts, please comment.x
()
x