Questions tagged [workflows]

The process of moderating content for publication in Drupal according a set of business rules is a workflow.

Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

How can I load the transitions for a particular workflow?

I want to load the transition objects for a Workflow. In Drupal 8, I see a Workflow::getTransitions() method, however it seems this method was removed in Drupal 9.
user avatar
  • 7,123
3 votes
1 answer
25 views

Multi-lingual Content Moderation

I have two languages (English and French). I want to: Explore options to create/review/approve/publish English content as its own workflow Explore options to create/review/approve/publish French ...
user avatar
1 vote
1 answer
77 views

How can I enable workflows for comments?

I would like to create workflows for comments and moderate them, but I can't find comments under This workflow applies to: on /admin/config/workflow/workflows/manage/comment_workflow. Does anyone know ...
user avatar
  • 27
0 votes
0 answers
26 views

Is the content moderation "log" data available via token?

I have several workflow states with content moderation on a Drupal 9.2 site. I use the Workbench Email module to send notifications on workflow transitions. One of the states is Rejected; the author ...
user avatar
  • 451
-2 votes
1 answer
42 views

Maestro workflow status block

After adding the Maestro status block to my homepage-content region, it doesn't display the status bar nor the status messages which were set in the workflow. It displays only the workflow title. 3 of ...
user avatar
0 votes
2 answers
411 views

How to programmatically require a field using Inline Entity Form

I have a node form using an inline entity form widget for either selecting or creating taxonomy terms to be referenced from the node. The field should be required at a certain moderation state, but ...
user avatar
  • 1,269
0 votes
2 answers
106 views

Token to get the latest revision's URL

I am using the Content Moderation and the Workflows modules along with the Workbench Email module to generate email templates. The Workbench Email module uses tokens to create dynamic email templates....
user avatar
  • 1
1 vote
1 answer
81 views

Which code is responsible for updating the vid field in the node table?

I am working on a project with a non-standard editorial workflow using Drupal 8 and Content Moderation. The workflow currently has the following states: draft pre-published awaiting review published ...
user avatar
0 votes
0 answers
93 views

How can I add admin comments to webform submissions?

First time question, apologies for any mistakes. I'm using the workflow module maestro, and in combination with webform i am attempting to add a section to show admin level comments as part of a ...
user avatar
1 vote
1 answer
140 views

Content moderation - workflows / weird behavior

I have set a content moderation workflows for my content type : Draft and Published states. Pretty basic, i create a content in Draft which is not published, i can change the moderation_state to ...
user avatar
  • 366
0 votes
1 answer
167 views

Pull content from production to staging server

I have a setup that consists of a Drupal 8 instance on my localhost, a staging instance on a develop server and a productive version on a production server. Initially, I was co-designing the theme, ...
user avatar
1 vote
2 answers
180 views

How do you programmatically include an entity type to a workflow?

I have a workflow to which I want to include entity/content types programmatically since these content types will be included to the system by the installation of the module to which they reside. I'm ...
user avatar
1 vote
1 answer
167 views

How do I get the submitted moderation state of a custom block?

I am a bit new for Drupal and currently working on Drupal8. I need to implement custom restrictions for workflow. Basically i want to get the submitted value of moderation_state filed in ...
user avatar
3 votes
1 answer
288 views

Getting the workflow associated to a node type

How do i get the workflow entity associated to a certain node bundle? So far my approach has been to use EntityTypeManager to load the workflow config entity storage and trying to load the right ...
user avatar
  • 45
0 votes
0 answers
48 views

Can you add a new state to Drupal 8 Workflows module through custom module?

Is it possible to add a new state (and transitions) to an already existing Drupal 8 Workflows through a custom module? And can we were to apply this to all workflows available? Or is it possible to ...
user avatar
1 vote
1 answer
91 views

How can I know if a type of content is moderated?

I'm trying to find out if a type of content (not a node) is being moderated. How can I determine it? For example: function MY_MODULE_form_node_type_form_alter(&$form, FormStateInterface $...
user avatar
  • 341
0 votes
1 answer
338 views

Content Moderation: Editorial workflow not installed and broken/missing handler on the moderated content view

I'm having troubles enabling Content Moderation Module (content_moderation) on a Drupal 8.7.8 site. During installation everything seems fine, drush en content_moderation finishes without errors, ...
user avatar
0 votes
1 answer
80 views

Show workflow transition bar in all states

I've created a custom workflow using the workflow module with the transitions listed below and I've noticed that when going to the view page of a node the workflow 'bar' that lets you transition a ...
user avatar
  • 298
1 vote
1 answer
122 views

How to assign a content type to a workflow programmatically?

is there any way that by code can assign a type of content to a workflow? I have reviewed the workflow module but I have not managed to find a method or a service that allows me to do it. What I am ...
user avatar
  • 341
0 votes
1 answer
125 views

Content approval by roles workflow

So I am looking at creating a website in Drupal (In the past I have used PHP and in the past few years, Symfony), however, I can not work out the workflows when it comes to approval for content. The ...
user avatar
  • 109
1 vote
0 answers
206 views

Using workflow with webform for moderation

I'm working with a Drupal7 site, it currently has both webforms and workflow modules. I need to move a webform from request to approve stages. I defined the stages, & Created a trigger for the ...
user avatar
  • 11
3 votes
0 answers
381 views

Change workflow transition state of translated node

I have a content node that has several translated nodes attached to it. My goal is to set the workflow transition state of translated nodes according to the state of the "original" node. The problem ...
user avatar
  • 129
1 vote
0 answers
50 views

A way to export workflow states globally?

My workflow and states weren't migrated from D6 so I re create them by hand. But I need to use them on another D8 website, and I don't find the way to globally export them, only state by state......
user avatar
1 vote
0 answers
28 views

Can Workflow Module be "non-linear"

I have two potential workflows in mind for website content: "Regular" Content Write Article (Draft) Content/Style Review Publish Content "Sensitive" Content Write Article (Draft) Compliance ...
user avatar
  • 273
1 vote
1 answer
77 views

Is the Workflow module a Symfony component?

In Drupal 8.5, is the Workflow module a component from Symfony? I ask because I thought it might help me to learn the basics from the Symfony Workflow component, but looking at the core directory and ...
user avatar
  • 513
1 vote
0 answers
78 views

Can multiple revisions of a node (entity) have different languages?

For example, we have a published English node, and a user creates a new draft and set the language (from the node form) to German and creates a new revision. This way the latest revision of the node ...
user avatar
  • 2,289
1 vote
0 answers
38 views

Why is the WorkflowType in Drupal 8.5 Content Moderation so large?

I would like to create a custom WorkflowType in Drupal 8.5. I looked at the Content Moderation source, and it is a massive set of code. I don't mind coding, but is all the source for Content ...
user avatar
  • 513
0 votes
1 answer
27 views

What configures Drupal to send emails on the create or update of an unpublished content? [closed]

My Drupal installation attempts to send emails to a number of users whenever I create or update content but do not publish it. But because sending email is not configured errors are generated. I don'...
user avatar
  • 1,269
1 vote
1 answer
56 views

Trigger on selected field change

So I have a Drupal 7 Workflow rule where an email is sent out when a select field on a comment is set to "Approved'. This works fine with the exception being if I then add an additional comment to ...
user avatar
6 votes
1 answer
1k views

What is the "default revision"?

I'm using the Workflow module in Drupal 8 and I saw this checkbox on the "add a state" screen (/admin/config/workflow/workflows/manage/help/add_state): Default revision When content reaches this ...
user avatar
0 votes
1 answer
56 views

Workflow with per page permissions

I am creating a site for a complex organization of authors, editors, and publishers. Basically, each author is responsible for 1-5 pages and can only create drafts of these pages. Similarly, editors ...
user avatar
  • 101
1 vote
0 answers
197 views

Get All "Drafts" in Content View

In essence, I'm trying to make a view of the moderation state "Drafts", (using Content Moderation). The catch, I'm trying to do so in a Content view for maintainability purposes. However, it won't ...
user avatar
  • 1,720
1 vote
2 answers
4k views

get the content moderation value on node update

The module content moderation has been activated and a custom workflow added to a content type. On editing content, when selecting a content moderation state then clicking on save, I would like to ...
user avatar
  • 2,775
0 votes
2 answers
133 views

Check if node update is published

I've a content type with a workflow. I have to notify users when the published version of the node is update. Have I to check which transition is used? How? I'm using an hook_node_presave. [EDIT] ...
user avatar
  • 3,092
0 votes
1 answer
158 views

Add state permissions and allow state changes

I'm using Workflow module. I want to give permission to a specific role to edit the content moderation state. I found these on permissions page but it's not working. After I update the role permission,...
user avatar
2 votes
1 answer
751 views

execute action on workflow transition

I want to execute PHP script in my custom module, when transition occurs. Workflow is assigned to custom entity. I'm using Drupal's core modules Workflow and Content moderation. How can I do that ...
user avatar
  • 125
0 votes
1 answer
427 views

Hook to compare the already saved value of moderation state of node and updated value [duplicate]

I'm using Workflow state on a content type. What is the correct HOOK should I use in my custom module to check if the workflow state of the node changed from value to another value to add some actions....
user avatar
1 vote
0 answers
92 views

How to link a a custom workflow with a content type or an entity?

I have a custom entity booking. I created a custom workflow type booking_moderation dedicated to this in Drupal\my_module\Plugin\WorkflowType\BookingModeration. I could then add my desirated states ...
user avatar
1 vote
0 answers
80 views

Proper Workbench Access/Moderation/Email + Node permissions for my use case?

I've been banging my head against the wall all weekend trying to figure this out but just can't seem to get 100% of the way there... I fix one thing, causing another thing to break. Making me question ...
user avatar
  • 57
1 vote
1 answer
194 views

How to publish in an organization with hierarchy?

My Drupal experience is limited to a single site with custom content types and standard roles. Please take a look at the use case below, involving content being routed through multiple organizational ...
user avatar
  • 11
1 vote
0 answers
27 views

How to debug no moderation_state on revision

I have a custom entity (not written by me) that I need to debug. It's currently crashing when editing the Entity because there is no moderation_state on the default revision. I'm new with both: ...
user avatar
  • 11
1 vote
1 answer
37 views

How to use views to filter specific workflow state in current month

I have a system that is heavily workflow dependant. I have a content type called 'Profile' with 3 states : Lead Prospect Customer I would like to know how to create a views contextual filter of all ...
user avatar
0 votes
1 answer
714 views

Link to create a node, save it, and then go to the edit page

I want to enable users to click a link to create a node of a specific content type. However, instead of going to /node/add/contenttype, which is the standard Drupal flow, I want the node of the ...
user avatar
0 votes
1 answer
28 views

Allow content builder to 'disable' a content type form

I have a site that allows users to submit a 3d print job to a lab. The role of the site builder is: technician The content type in question is: print job Users can submit a print job (i.e. create a ...
user avatar
  • 556
1 vote
1 answer
580 views

How to create media image entities like an image field?

I have been using a content type Article with an Image field to allow users to upload images. I have decided that I want to use media image entities instead because the images will be re-used on ...
user avatar
5 votes
3 answers
6k views

How to change the content moderation state in a custom submit handler?

I am trying to change the content moderation state from draft to submitted programatically. The Content Moderation module adds a field to content types with a dropdown to change the state, but I want ...
user avatar
5 votes
0 answers
1k views

Workflow, Workflows, Workspace, and State Machine-- what is the difference?

Drupal 8 core has an experimental module called Workflows. There is also a contrib moduled called Workflow. There's also the Workspace module, which is associated with the Deploy module. Commerce 2 ...
user avatar
2 votes
1 answer
42 views

How can I automatically assign users to a node based on a taxonomy?

I've Googled this but might just not be using the right search phrases. I'm building an RFP repository for my company. Each RFP question will have a Category assigned to it. Within Drupal, I'd like to:...
user avatar
  • 57
5 votes
2 answers
5k views

How can I programatically change the (D8 core) workflow state of an entity with Content Moderation?

I'm using Drupal 8.4-rc2. When you enable the Workflow and Content Moderation modules, you automatically get the Editorial Workflow as a demonstration. The states are as follows: Archived Draft ...
user avatar
1 vote
2 answers
1k views

Content Moderation: how to make a button to move between states?

I want to allow authenticated users to fill out a node (Draft) and then, when they are ready, submit the node (to give it the Submitted state). An admin will later decide whether or not to publish ...
user avatar

1
2 3 4 5