Drupal 8 Publish Content Module

By shane
Tue, 2019-09-17 07:06
Daily Dose of Drupal Episode #233

Share with Others

The Drupal 8 Publish Content module is a simple module that provides you additional permissions to allow users to publish or unpublish content without having to give the user the ability to administer all the content on your site. This module is a lightweight solution to help you build out your content management workflow on your Drupal 8 site.

The module also adds some additional features such as:

  • A publish/unpublish menu tab or action link for your content
  • A publish/unpublish link that can be used in views to create a customized publishing workflow

Download the Drupal 8 Publish Content module like you would any other Drupal module. You can download it with Composer using the following command:

composer require drupal/publishcontent

Install the Publish Content module.

Click on the Permissions link under the Publish Content module listing on the Extend page or Navigate to People > Permissions and find the Publish Content section. You will find a bunch of granular publishing permissions for deciding who can publish or unpublish content on your site.

Publish Content Permissions

If you navigate to a piece of content on your site, you will notice there is now an Unpublish/Publish link.

Publish Content Menu Tab

This link is also available to add in views for content listing views.

Publish Content View Link

This module provides you a ton of flexibility for building out your content management workflow on your Drupal 8 website.