LogoLogo
9.0.x
9.0.x
  • Overview
    • About Varbase
    • Roadmap
    • Release Cycle and Supported Versions
    • How to Get Support
  • Developers
    • Getting Started
    • Installing Varbase
      • Requirements
      • Installing Varbase with DDEV
      • Installing Varbase with Lando
    • Understanding Varbase
      • Basic Concepts
      • Core Components
        • Varbase Core
          • Varbase Admin
          • Varbase Page
          • Varbase Security
          • Varbase Webform
          • Varbase Default Content
          • Varbase Tour
        • Varbase Media
        • Varbase Editor
        • Varbase Email
        • Varbase SEO
        • Varbase Workflow
        • Varbase Layout Builder
          • Varbase Landing page (Layout Builder)
          • Varbase Heading Block
          • Varbase Rich Text Block
          • Varbase HTML Code Block
          • Varbase Media (Image/Video) Block
          • Varbase Gallery Block
        • Varbase Total Control Dashboard
        • Vartheme Claro
        • Vartheme BS4
      • Optional Components
        • Varbase API
        • Varbase Internationalization
        • Varbase Media Hero Slider
        • Varbase Carousels
        • Varbase Blog
        • Varbase Search
        • Varbase Social Single Sign-On
        • Varbase Media Twitter
        • Varbase Media Instagram
        • Varbase Content Planner
        • Varbase Bootstrap Paragraphs
          • Varbase Bootstrap Paragraphs Text and Image
        • Varbase Landing Page (Paragraphs)
      • Additional Components
        • Varbase Media Header
        • Varbase FAQs
        • Varbase Reports
        • Varbase Commerce
        • Varbase YouTube Import
      • Development Components
        • Varbase Development
        • Varbase Style Guide
        • Reroute Email
        • Varbase Updates Helper
    • Configuring a Varbase Site
      • Navigation
        • Defining Active Menu Trail Using Menu Position
      • Using View Modes Inventory
      • Content Moderation and Workflows
      • URL Aliases in Varbase/Drupal
        • Configuring URL Aliases
        • Managing URL Aliases
      • Managing URL Patterns for Multilingual Websites
      • Managing Date and Time Formats to Display Across the Site
      • Using Varbase Layout Builder
        • Creating a Landing Page With Varbase Layout Builder
        • Activating Varbase Layout Builder for Content Types
      • Configuring Pathologic When Going Live
      • Configuring SEO Features
        • Disallow Oembed Media Links
      • Configuring Security Features
        • Spam Protection
        • Password Policies
        • Other Security Kits
        • Flood Contorl
        • Enable HTTP Password Authentication
      • Configuring JSON:API Features
      • Configure Varbase Media Hero Slider
      • Configuring Varbase Media Header
      • Configuring Varbase Mailer Settings
        • Configure Symfony Mailer
        • Configure Swift Mailer
        • Switch From Swift Mailer to Symfony Mailer
      • Entity Definition Update Manager Class
      • Module Installer Factory Class
    • Theme Development with Varbase
      • Understanding The Vartheme Base Theme
      • Creating Your Own Theme
      • Local Tasks and Moderation Sidebar
      • Add Preloaded Fonts in Vartheme
      • Switch From Node SASS to Dart SASS for Old Sub-Themes
    • Launching a Varbase Site to Production
    • Updating a Varbase Site
      • Understanding Varbase Updater Package
      • Handling Patches When Updating
      • Handling Configuration Updates
      • Updating Varbase to work with Composer 2.0
      • Updating Drush to the Latest Stable Version
      • Version Update Guides
        • Updating Varbase ~9.0 to Drupal 10
        • Switch from CKEditor 4 to CKEditor 5 in Varbase ~9.1.0
        • Updating from Varbase 8.x to 9.x
    • Varbase Patches
    • Frequently Asked Questions (FAQs)
    • Extending Varbase
      • Overriding Varbase
      • Creating Your Own Feature
      • Creating A Sub Profile From Varbase
        • Varbase Sub Profile Generator
        • Varbase Sub Profile Basic Template
        • Varbase Sub Profile Basic Project Template
      • Install Needed YARN and Gulp Tools
      • Compiling Provided Component Styles
      • Check Standards/Practice Coding And Linting
  • Content Designers
    • Terminology
    • Accessing the Administration Area
      • Website Environments
    • User Management
      • Allow Email/Username Login & Registration
      • Default Roles and Site Personas
        • Edit Roles' Permissions
        • Managing Roles
      • Add User
      • Edit User
      • Masquerading as another user
    • Dashboard
      • Reports
    • Content Structure
      • EntityQueues
      • Menu Management
        • Add Menu Items
        • Update Menu Items
        • Adding a Page to the Menu
      • Taxonomies
        • Manage Vocabulary
        • Edit Vocabulary
        • List Terms
        • Add Terms
        • Reorder and Edit Terms
      • Webforms
        • Setting up Emails Handler Conditions
        • Setting up Confirmations Message Settings Types
    • Content Management
      • Create Content
        • Add a Basic page
        • Add a Landing page
        • Add Blog
        • Add Media
          • Image
          • Remote video
          • Video
      • Modify Content
      • Delete Content
      • Preview Content
      • Bulk Edit Content
      • Content Moderation
      • Publish Content
      • URL Alias
    • About Layout Builder
      • Section
      • Custom Blocks
        • Heading Block
        • Basic Block
        • Media Block(Image/Video)
        • Rich-Text Editor “WYSIWYG”
      • Managing Blocks
    • Search Engine Optimization
      • XML Sitemap
      • Meta Tags in Varbase
      • URL Redirects
      • Domain Redirects
      • Prevent a Single Content From Being Indexed
    • Site Configuration
      • System
        • Clearing Varbase Cache
        • Google analytics
        • Mail templates
      • User interface
      • Development
      • Varbase settings
      • Web services
    • Common Error Handling Tips
  • Contributing
    • Contributing to Documentation
Powered by GitBook
On this page
  • Varbase Workflow Module
  • Content Moderation Workflows
  • Assigning a Workflow to Content Types
  • Adding or Editing Workflows
  • Moderation Sidebar
  • Administration Views for Moderated Content
  1. Developers
  2. Configuring a Varbase Site

Content Moderation and Workflows

PreviousUsing View Modes InventoryNextURL Aliases in Varbase/Drupal

Last updated 1 year ago

Varbase comes with a set of content moderation and editorial workflows out of the box. These features are all provided from the Varbase Workflow module, shipped with Varbase as of version 8.8.6.

Varbase Workflow Module

Content moderation and workflow features are bundled through the Varbase Workflow module. GitHub: Drupal.org:

After building a project using the varbase-project template, you can see the code of the Varbase Workflow module in:

project_directory
|-- docroot
    |-- modules
        |-- contrib
            |-- varbase_workflow

Varbase Workflow brings in the following core and contributed modules to your site:

Module

Purpose

Workflows module

(in Drupal core)

Provides an interface to create workflows with transitions between different states (for example publication or user status) provided by other modules.

Content Moderation module

(in Drupal core)

Provides moderation states for content.

Provides a frontend sidebar for Content Moderation.

Publish and unpublish content automatically on specified dates and times.

Allows emails to be sent on state transitions.

Scheduler sub-module providing content moderation functionality for publishing/unpublishing.

Logs workflows events performed by the user.

Plan your content using a Dashboard, the Content Calendar and Content Kanban.

Content Planner is not enabled by default in Varbase.

Content Moderation Workflows

Out of the box, Varbase Workflow offers two workflows for content moderation:

  1. Simple workflow: Draft, Published, and Archived / Unpublished Useful for any website, and offers the ability make a draft of a live version of content without unpublishing the whole content.

2. Editorial workflow: Draft, In review, Published, and Archived / Unpublished Useful for websites with editorial or moderation staff. You can create as many additional states as you like and define transitions between them to suit your organization's needs.

To view or manage these workflows, navigate to: Administration \ Configuration \ Workflow \ Workflows

Assigning a Workflow to Content Types

Varbase considers the "Simple" workflow as the default Workflow to be enforced even for sites without a content moderation process. This is mainly because the Simple workflow offers the ability to make a draft of a live version of content without unpublishing the whole content.

Therefore, when creating a new Content Type, whether from the UI, or via code (i.e. enabling a module), the "Simple" workflow will be chosen by default.

You can then change the Workflow to another one if you wish. It's advised you do so before adding new content of that Content Type.

Assign a Workflow When Creating a New Content Type

By default, Varbase let's you choose the Content Moderation Workflow when creating a new content type from the UI.

You'll see that option under the "Publishing options" when creating a new Content Type.

Assign a Workflow to an Existing Content Type

You can also assign an existing Content Type to a Workflow if it wasn't assigned one yet. To do so"

  1. Navigate to: Administration \ Configuration \ Workflow \ Workflows

  2. Click "Edit" under Operations for the desired Workflow

  3. Scroll down to "This workflow applies to" section

  4. Click "Select" next to "Content types"

  5. Choose your desired Content Type from the list and click on "Save". Note that Content Types assigned to another Workflow will not appear on this list.

Adding or Editing Workflows

To add a new Workflow or edit an existing one, navigate to: Administration \ Configuration \ Workflow \ Workflows then click on "+Add workflow" for a new Workflow, or "Edit" under Operations for the desired Workflow.

Moderation Sidebar

Moderation Sidebar provides an off-canvas menu to moderate the current content. To use the sidebar, visit any content with an enabled Workflow. You'll see the "Tasks" button in the Administration Toolbar. This will open an off-canvas menu that contains contextual actions related to the assigned Workflow.

The default Varbase configuration now hides the "Local Tasks" available in content pages in the front-end theme, assuming that the Moderation Sidebar is the alternative method to edit, view, translate, or manage content.

Read more on how to re-enable the "Local Tasks" to appear again.

Administration Views for Moderated Content

Varbase Workflow adds a simple administration view to show the available drafts and their moderation state. This view is available for all roles who can edit content.

To see the available drafts, navigate to: Administration \ Content \ Moderated content

module

module

module

module

module

module and its submodules

Refere to Drupal.org documentation for more about the terminology and usage of the Workflows and Content Moderation module.

Refer to Drupal.org documentation for more about the terminology and usage of the Workflows in Drupal.

https://github.com/Vardot/varbase_workflow
https://www.drupal.org/project/varbase_workflow
https://www.drupal.org/docs/8/core/modules/workflows/overview
https://www.drupal.org/docs/8/core/modules/content-moderation/overview
https://www.drupal.org/docs/8/core/modules/workflows/overview
Moderation Sidebar
Scheduler
Content Moderation Notifications
Scheduler Content Moderation Integration
Admin Audit Trail Workflows
Content Planner
Varbase Simple Workflow Diagram
Varbase Editorial Workflow Diagram
Workflows Management
Choosing a Workflow when creating new content type
List of content types under Workflow
Moderation Sidebar
Moderated Content Admin View