Out of the box, Varbase Workflow offers two workflows for content moderation:
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.
Editorial workflow: Draft, In review, Published, and Archived / Unpublished
Useful for website 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.
Choosing a Workflow when creating 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"
Navigate to: Administration \ Configuration \ Workflow \ Workflows
Click "Edit" under Operations for the desired Workflow
Scroll down to "This workflow applies to" section
Click "Select" next to "Content types"
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.
List of content types under Workflow
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 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