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
1answer
259 views

Empty node workflow state on node after programmatically saving

I have saved a node programmatically, in the following way: $node_storage = \Drupal::entityManager()->getStorage('node'); foreach ($entity_ids as $id) { $node = $node_storage->load($id);...
0
votes
1answer
34 views

how to enable workflow submodules in Modules administration page

I am a very beginner to Drupal. In order to understand how Drupal-Workflow works, I try to install Workflow Module into my site. Following the installation guide on Drupal Documentation, i place the ...
1
vote
1answer
934 views

Content approval by roles

here is my question: I need to implement a content approval process, my client wants content to go through an approval process before being published. I need to create 3 administrative roles, like ...
2
votes
1answer
54 views

Reestablishing development workflow with GIT after doing it wrong

At one point, I had the following proper Drupal development workflow: local development environment (using Mamp), dev server for testing and a production server, and I used GIT to deploy the changes ...
4
votes
2answers
910 views

How can I change the published state of a node before it is saved with hook_entity_presave()?

I tried adding this in entity_presave $entity->setPublished(0); but the node still gets saved as published. How can I make it be set to draft?
5
votes
2answers
5k views

How do I limit validation errors to submission buttons?

Using hook_form_alter I have tried to add limit validation errors to workflow submission button. In form alter I'm getting two form_id's one is normal node add form_id and another is workflow state ...
1
vote
1answer
36 views

“Unable to send email” error shown to anonymous users in Workflow action

Using the Workflow module, I've got a content type that can be created by anonymous and authenticated users alike, then it goes into a review process. Upon creation, I want to email the user with a ...
2
votes
1answer
52 views

Error viewing articles/pages after assigning

As an experiment I've merged core from 8.3.x branch to try out workflow. After successfully assigning 'editorial workflow' to articles and pages, I cannot access the pages or articles anymore neither ...
0
votes
1answer
556 views

How to correctly start a website using Git/Drush/Composer workflow?

I am trying to follow this article to start a D8 site: https://www.drupal.org/node/803746 The article is for D7 but I think there are no much differences. These are the steps I followed so far: ...
2
votes
1answer
55 views

The right form to work with pages [closed]

Reciently, I'm starting to work with Drupal 8, but I have some problems working with main pages. I can create a content type for all pages, but, the fields I use in to create this, must be content all ...
3
votes
2answers
221 views

What might cause the unexpected workflow state changes after executing a rule?

I want to change the workflow state to draft from publish and unpublished the node on edit. I used rules for this: For Unpublish: For publish: When I edit a node and save it, workflow state changes ...
0
votes
1answer
55 views

Webform Worflow notifaction [closed]

I'm using D7, WebForm Module and Workflow Module. When the user submit, the state change automatically to the first state. Users to notify and the submitter user should receive normally the ...
1
vote
0answers
27 views

How to link a manager with the manager's team and supervisor? [closed]

A user submits a webform, the user's manager can validate it to him/her or not. After validation the manager sends the webform to another department for validation. I'm using Webform Workflow for ...
2
votes
0answers
45 views

Multilingual admin interface

I have a multilingual website ( english, dutch and german ). The language detection is setup to look at the URL for both interface and content. This results in an admin interface that goes from dutch ...
0
votes
2answers
1k views

Creating a workflow [closed]

I'm learning drupal, I create a web form for duty travel that the user submitted. Now I want to create a workflow so after submitted the webform should be sent to manager for validation or cancelling ...
3
votes
2answers
409 views

How can I let users create new drafts for *existing* content?

We have two roles of user: Admins and Content Creators (basically Authenticated with a few more permissions to create content). We'd like to have Content Creators be able to create new drafts from ...
0
votes
1answer
166 views

Send e-mail when a field has a specific value

I use the Workbench moderation module for Articles workflow. I would like to send an e-mail when Workbench moderation field has the needs review value. I tried using the Rules module, but I don't ...
2
votes
0answers
99 views

Add a non-system confirm popup on node add/edit

I want a custom confirmation popup to come up when someone wants to save a new node or update an existing one. Of course, the form only submits/saves info if the user clicks Yes. As it is now the ...
1
vote
0answers
25 views

How can I validate a state change?

I'm working with the Workflow module, and I'm trying to validate fields before a state change is allowed. What mechanisms exist to allow this?
2
votes
1answer
613 views

How to execute a VBO using Drush

So I want to execute a VBO using drush, taking advantage of vbo-execute command to change my workflow state in my views, based on few resources I found this is the command I'm using: drush vbo-...
2
votes
1answer
33 views

Features - keeping Git up to date when changing features on production

I have a Drupal 7 site with a UAT version and Production version. Most of the features on production have been overridden. I want to keep my repository up to date in case anything happens to my ...
1
vote
0answers
17 views

How to make node view show approved, not latest

I've got a client with an old Drupal 6 site that uses workflow and revisions. They want a blog added with related content types and Views. All works except that for the node page itself, it shows the ...
1
vote
0answers
106 views

Saving file not working with rules module

I want to execute some custom code when going from state A and B. I'm using the rules module and workflow module and trigger when changing state. This works but the custom code that I want to run ...
1
vote
0answers
24 views

Advanced file handling with workflow

I have a field with type file. The whole content type follows the workflow process. As of now, when a new file is added to the new revision, it automatically gets renamed and the recent file will be ...
2
votes
3answers
52 views

Should I use the Rules module to implement custom code when performing state transition?

I need to run some custom code when I go from state A to state B (using the workflow module). Should I implement this with the Rules module and call my function from there or implement all of it in ...
0
votes
0answers
307 views

Workflow filter view result

I have a content-type called content_A which has a reference field pointing at a user (ref_user) and a workflow field with three states. I want to make a table using views that filters on workflow ...
0
votes
1answer
469 views

Drupal and Git workflow using Acquia cloud

Currently i have my central repo (origin repo) on a Bonobo Git Server. I have followed those steps to use Acquia Cloud with a remote repository. On my Acquia cloud repo i installed Drupal 8. also ...
0
votes
1answer
311 views

Assign a workflow to a content type

I had defined a new workflow which has 3 states and I want to assign it to a content type. I had tried to make a workflow file type in manage field but when I try to edit it I can not choose my ...
1
vote
1answer
85 views

How to avoid missing status for Workflow access module permission just after node creation?

I am using Workflow 7.x-2.8 to manage peer-reviewing publication. When an authenticated user (an author) creates a post, he can choose a first workflow state transition from creation (by default) to ...
0
votes
2answers
67 views

Fields attached to Workflows do not get saved

Using Drupal 7.41 and workflow 7.x-2.8, when you attach fields to a Workflow, the fields do not get saved with the workflow field. It's easy to replicate: Create a workflow, add a field to that ...
1
vote
0answers
64 views

How to change a content´s workflow state from an url

I have a server installed with apache2 and drupal 6. In my server, users can make some type of new contents. When they make a new content, they receive an e-mail with creation confirmation. I´d like ...
1
vote
0answers
48 views

How can I add date field in workbench moderation form in Drupal 7?

I have a content type. I applied workflow for this content type of using the Workbench, Workbench moderation, Workbench access module. When using I see arise a problem to add to my software that I ...
1
vote
3answers
172 views

How to show/hide “printer-friendly version” link according to workflow states?

There's a review content type on my site with a workflow: I use 'draft' and 'completed' workflow states. I'd like to create a printer-friendly and pdf-version of 'finished' reviews only, so I'd like ...
1
vote
1answer
128 views

How to implement multiple approvals with emails?

I am currently using the Webform module, but I can't find a way to make a workflow that works for what I am trying to do. Please let me know if I am approaching this incorrectly, or if I should be ...
0
votes
1answer
197 views

Dynamic webforms workflow

I know how to setup a multi-page webforms (basically add page breaks' between each page). I also know how to use the conditionals to skip certain questions based on the values or state of previous ...
1
vote
1answer
68 views

Required taxonomy term fields for node publishing?

I want to create content which has shared some aspects. I am doing this through a taxonomy reference. The taxonomy has certain fields that describe each piece of content (in my case used cars). In ...
1
vote
0answers
617 views

Get Workflow current state ID of a node

I'm trying to get current workflow state of a node to use in a function which will disable some tabs according to conditions. $current_state = workflow_node_current_state($node) didn't work. So, I ...
0
votes
1answer
349 views

How can i send a mail to specific user when workflow state is changed or changed to particular state?

I want to send a mail when workflow state will change from creation to pending,from pending to approval and from approval to published. How can i achieve this. I have tried with rules but it can't be ...
1
vote
1answer
130 views

How to stop same-state state changes in Workflow state change block?

I am using Workflow with a custom content type. I have the Workflow state transition form as a sidebar on my node view page. I made the workflow states into buttons so that you can choose which state ...
0
votes
1answer
73 views

Concatenate and minify css with Gulp still necessary? [closed]

I'm using Gulp as part of my theming workflow and was wondering if it was necessary to add the concatenate and minify tasks into Gulp if Drupal already does that when I check the option under ...
3
votes
2answers
1k views

How to programatically convert nodes from draft to saved

Is there a way I can convert all my imported nodes into "saved " status instead of "Draft" programmatically? Can this be done in a hook and what would the code for doing this be? If it can be done ...
2
votes
2answers
448 views

How to force initial imported node to not have draft status using feeds?

I'm using the Feeds (7.x-2.0-alpha9) and the Workflow modules. My imported nodes are automatically going to draft state and only go to done state when there is a second import of this node and the ...
7
votes
1answer
4k views

How to implement a multi step approval with webforms/entityforms based on form components?

Is it possible to invoke multi-step submission workflow using either Webform or Entityform? Here is the scenario of workflows: An employee submits the form Superviser gets notification,...
2
votes
1answer
2k views

How to get workflow state transition history for a node?

In the admin section, for any given node, I need to add a dropdown field that lets QA assign that node to a developer who had previously made changes to the node's workflow state. I am currently using ...
1
vote
2answers
80 views

How to disallow users to edit their content after it was submitted for review?

I'm looking for a solution that does not allow a user to edit content after being submitted for review. I'm working with two roles: Content Creator and Reviewer. If the Reviewer rejects the content, ...
1
vote
1answer
142 views

How to require revision logging for certain users

In Drupal 7, if a specific role modifies any content, I want to require that the user add message explaining the changes. How can this be accomplished, either through an existing contrib module or ...
1
vote
2answers
473 views

How to use Rules to send an eMail containing a list of nodes with a selected value in a field?

I try to send a list of nodes with certain value in a specific field via the Rules module. This is what I have so far: Event: "After updating existing content of type MyContentType" Conditions: "...
1
vote
1answer
706 views

How to control Block revisions before being published?

Does Drupal support blocks versioning? Are there any modules can be used for controlling blocks revisions and publish selected version? For example: a newly created blocks shall be published after ...
1
vote
1answer
212 views

Commerce rule for total of product lines only (not shipping as well)

I have a requirement to add an amount to the total of all Commerce product lines items in a users cart and then add that amount to the shipping amount. The rule I currently have uses the "calculating ...
2
votes
0answers
30 views

Ignore certain state transitions in Workflow

Is it possible to disable certain state transitions with Workflow? I have 4 states: Pending, Approved, Denied, and Urgent. A node goes directly to Pending when saved, where an editor can either ...