Editorial workflow

A Drupal editorial workflow is a set of moderation states, such as Draft and Published, with a role permission for each move between them.

Learn DrupalDrupal glossary

An editorial workflow is the route content takes from first draft to published page: who writes it, who reviews it and who may publish it. In Drupal, the core Workflows and Content Moderation modules turn that route into states, such as Draft and Published, and into transitions between them that you can restrict by role.

How an editorial workflow works in Drupal 11

Two core modules do the work. Workflows provides the interface for creating workflows with states and transitions. Content Moderation depends on it and attaches a workflow to content. The Drupal User Guide says both modules work with content items and custom blocks. The Standard installation profile does not install either one, so you enable them first.

A workflow has three building blocks:

  • States such as Draft or Published. In Content Moderation, each state is flagged as published or unpublished, and as a default revision or not. Draft and Published are required.
  • Transitions that say which state content may move to from which other states.
  • Permissions. The module help states that each transition is exposed as a permission. Its machine name is use [workflow] transition [transition], and the permission controls who can make that move.

You manage workflows under Configuration › Workflow › Workflows. In the workflow's settings, the section This workflow applies to: lets you choose the content types, or other content entities, that use it. On the edit form, an editor then sees the current state and a Change to list of the allowed next states; a new item shows Save as instead. The help text describes the effect on revisions: a published version stays live while a separate working copy is under review.

Example

The Standard profile ships an optional workflow called Editorial. Drupal creates it when you enable Content Moderation on a site installed with that profile. Its states are Draft, Published and Archived. Its transitions are:

  • Create New Draft: from Draft or Published to Draft.
  • Publish: from Draft or Published to Published.
  • Archive: from Published to Archived.
  • Restore to Draft: from Archived to Draft.
  • Restore: from Archived to Published.

New content starts in Draft. The shipped file lists no content types, so you still have to tick the ones that should use it. One way to use it: give the writers' role the Create New Draft permission and the reviewers' role the Publish permission.

Common mistakes

  • Giving every role every transition. Then anyone can publish, and the workflow enforces nothing.
  • Expecting tasks and deadlines. Core Workflows and Content Moderation handle states, transitions and transition permissions. They have no settings for assigning work or due dates.
  • Deleting a state in use. Drupal refuses: the form says you cannot remove the state until you have removed all content using it.
  • Forgetting to attach the workflow. A workflow with no content types selected changes nothing on the edit form.

For marketing and content teams

Decide the steps before you ask for the setup: who drafts, who approves, whether old pages get archived. Then ask your developer to map each step to a role. Writers save as Draft; reviewers use the Moderated content page to find items waiting for them. Because the published version stays live while a draft is open, you can revise a live page without taking it offline.

With DXPR

The DXPR Builder page states that editors can change the moderation state beside the revision log on the editing screen, and that every save is kept as a Drupal revision.

Sources

Questions about Editorial workflow

Not by the Standard installation profile: its install list contains neither Workflows nor Content Moderation. Enable both on the Extend page. Content Moderation depends on Workflows, so the two always go together.

Yes. A workflow of the Content moderation type must keep the Draft and Published states, and you can add others. The Editorial workflow in the Standard profile adds an Archived state, plus transitions to archive content and to restore it.

Only accounts whose role holds the permission for that transition. Each transition becomes its own permission, for example Editorial workflow: Use Publish transition. The Administrator role of the Standard profile is flagged as an admin role, so it holds every transition permission automatically.

The Moderated content page at /admin/content/moderated. The module's help text says it lists content in unpublished states, such as Draft or Archived, so editors can find items that need attention.

Related terms

All Drupal terms from A to Z