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
31 views

Drupal 10: Workflows (core) user assignment [closed]

We have a Drupal 10 site with the core Workflows and content moderation module enabled. The roles are properly configured, and the workflow is working as expected. We configured the workflow to allow ...
devdever's user avatar
0 votes
1 answer
34 views

Error creating a status transition programmatically - Missing bundle for entity type workflow_transition

I'm currently working on a migration project from D7 to D10. I have a form that needs to go through several steps from creation to completion, here are some of them: New Request Under Analysis ...
ernanesabino's user avatar
0 votes
0 answers
14 views

How can I access workflow fields and store them in content fields in drupal

I have a workflow called custom and it has workflow field called assign user , now i am using this workflow on my content type complaints and it is showing the workflow form in a field called ...
Joel Camilleri's user avatar
0 votes
0 answers
38 views

Unpublished regions appearing on pages for anonymous users

I inherited the site I'm working on. We are using the Content Moderation module and running Drupal 10. Looking to allow administrators to 'unpublish' certain on-page content types by adding them to ...
iowebmstr's user avatar
0 votes
0 answers
18 views

Displaying content in draft mode

A view is set up to display a node's contents. The node contains workflow moderation, like the published status. To make a new change in the content and to preview it, the content is set to draft mode....
jojan's user avatar
  • 1
0 votes
0 answers
20 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
31 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
29 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
1 answer
25 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
  • 630
1 vote
1 answer
128 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
  • 939
0 votes
0 answers
26 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
173 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,278
1 vote
0 answers
98 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
  • 15
0 votes
1 answer
413 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,921
3 votes
0 answers
148 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
235 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
55 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
1k 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
307 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
195 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
145 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
357 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
372 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
431 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
455 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
722 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
65 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
175 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
534 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
127 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
218 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
186 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
303 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
461 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
97 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
104 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,459
1 vote
0 answers
40 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
36 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
83 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
81 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
313 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,897
2 votes
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,429
0 votes
2 answers
344 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,222
0 votes
1 answer
187 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
1k 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
503 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
149 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
2 3 4 5