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
0 answers
18 views

Prevent view results duplicate caused by workflow transitions

I have a view that lists content fields and it works fine, but, if I want to add a workflow field to the result (I have a field called reject_reason attached to workflow), I added workflow transition ...
Abdulmuhaymin's user avatar
0 votes
0 answers
27 views

Automation of publishing using Rules and Workflow

I am currently working on automating status changes in Drupal, my task is to use the Rules and Workflow modules to configure status changes after a certain period. For better understanding, I'll give ...
relmayer's user avatar
0 votes
0 answers
20 views

The tab "Latest Version" does not appear and neither is the path /latest working (Drupal 9.5.8)

I have the modules Workflows and Group content moderation installed. I also configured a workflow for a particular content type. My problem is that although I can change the moderation state in the &...
af_elkb's user avatar
0 votes
0 answers
30 views

Report comments / Workflow

I am trying to implement a functionality that would allow authenticated users to report comments on a forum post. My first thought was to do it using workflows but comments dont have a workflow ...
ShadowAce's user avatar
0 votes
1 answer
22 views

Auto assign term to node from term field from user

I have a term field called "Organization" on both Content and User entities. On the Content entity, the field for Organization is hidden. For the user, they select a value for Organization. ...
ymdahi's user avatar
  • 620
1 vote
1 answer
103 views

Is possible to add a field to content moderation's states?

I'm on D 9.4.x and using content moderation module. Is possible to add a custom field to the states of the workflows\module? E.g. add a boolean?
Giuseppe's user avatar
  • 907
0 votes
0 answers
25 views

Require Workbench Reviewer field

For the project i'm working on, I am using content moderation and workbench_reviewer modules. This allows content authors to choose a reviewer (manager) for the next step in the publishing workflow ...
SteFairc's user avatar
0 votes
0 answers
131 views

What impacts "revision_translation_affected"?

I have seen this in the code comments: If a translation has changes in a certain revision, the translation is considered "affected" by that revision, and will be flagged as such via the &...
liquidcms's user avatar
  • 1,224
1 vote
0 answers
83 views

Define a role to only save drafts even when editing published content

I bet this is a nerd doubt (sorry) but after searching all I find are more complicated/advanced questions and not 'the basic one'. I'm creating a 'basic editor' role that can send content (node) that ...
hip's user avatar
  • 17
0 votes
1 answer
336 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.
sonfd's user avatar
  • 7,811
3 votes
0 answers
137 views

Multi-lingual Content Moderation [closed]

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 ...
Somoshri Ghosh's user avatar
2 votes
1 answer
211 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 ...
PartyRadio's user avatar
-2 votes
1 answer
49 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 ...
samdesigncodes's user avatar
0 votes
2 answers
941 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 ...
UltraBob's user avatar
  • 1,329
0 votes
2 answers
269 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....
HarshB's user avatar
  • 13
2 votes
1 answer
178 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 ...
Semiaddict's user avatar
0 votes
0 answers
136 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 ...
James Schafter's user avatar
1 vote
1 answer
294 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 ...
lchabrand's user avatar
  • 364
1 vote
1 answer
320 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, ...
flauschi's user avatar
2 votes
3 answers
383 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 ...
Sudheesh S Babu's user avatar
1 vote
1 answer
392 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 ...
Abhijeet Sharma's user avatar
3 votes
1 answer
607 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 ...
Howard's user avatar
  • 45
0 votes
0 answers
64 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 ...
mstrdruids's user avatar
1 vote
1 answer
149 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 $...
chalo's user avatar
  • 431
1 vote
1 answer
501 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, ...
electric.larry's user avatar
0 votes
1 answer
117 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 ...
Neil Nand's user avatar
  • 308
1 vote
1 answer
207 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 ...
chalo's user avatar
  • 431
0 votes
1 answer
177 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 ...
MicWit's user avatar
  • 109
1 vote
0 answers
281 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 ...
vany's user avatar
  • 11
3 votes
0 answers
445 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 ...
plocks's user avatar
  • 139
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 ...
Scott's user avatar
  • 273
1 vote
1 answer
96 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 ...
johnny's user avatar
  • 513
1 vote
0 answers
98 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 ...
awm's user avatar
  • 2,429
1 vote
0 answers
39 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 ...
johnny's user avatar
  • 513
0 votes
1 answer
33 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'...
vfclists's user avatar
  • 1,269
1 vote
1 answer
79 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 ...
user1683443's user avatar
6 votes
1 answer
2k 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 ...
Patrick Kenny's user avatar
0 votes
1 answer
80 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 ...
js1568's user avatar
  • 101
1 vote
0 answers
297 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 ...
Chris Happy's user avatar
  • 1,867
1 vote
2 answers
5k 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 ...
Matoeil's user avatar
  • 3,359
0 votes
2 answers
304 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] ...
arrubiu's user avatar
  • 3,212
0 votes
1 answer
172 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,...
Mohamed Osama Gbril's user avatar
2 votes
1 answer
972 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 ...
Saulius's user avatar
  • 125
0 votes
1 answer
486 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....
Mohamed Osama Gbril's user avatar
1 vote
0 answers
141 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 ...
Drupal de Comptoir's user avatar
1 vote
0 answers
87 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 ...
Chris K's user avatar
  • 57
1 vote
1 answer
212 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 ...
Zack's user avatar
  • 11
1 vote
0 answers
28 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: ...
Nathan's user avatar
  • 11
1 vote
1 answer
67 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 ...
Peter Westcott's user avatar
0 votes
1 answer
772 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 ...
Patrick Kenny's user avatar

1
2 3 4 5