Batch update Workflow state using records stored in a view?
geerlingguy - September 25, 2009 - 14:40
| Project: | Workflow |
| Version: | 6.x-1.1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I was wondering if there's any mechanism/method to batch update workflow states...? I have a view that will typically have 50-100 workflow-enabled nodes in it, and instead of going into each node, I'd like the user to be able to click a button to change the workflow state of all the nodes at the same time (or at least a link within the view to update one node at a time without having to go to the Node's Workflow tab).

#1
Take a look at Views Bulk Operations (VBO) module. It might be what you're after. It's what I use for that purpose, although I don't open it up to general users.
http://drupal.org/project/views_bulk_operations
#2
Take a look at Views Bulk Operations (VBO) module. It might be what you're after. It's what I use for that purpose, although I don't open it up to general users.
http://drupal.org/project/views_bulk_operations
Team it up with actions to create workflow actions.
#3
Hmm... will have to try that - it looks like what I need. I will try it and get back to this post soon!
#4
Spiffy! I was able to use Views Bulk Operations (VBO) to put a filter on my views that automagically selects all the nodes in the view, and lets me update them, and even lets me use the Batch API so large listings don't take absolutely forever to update!
I'll be writing up a post about the site I'm currently working on soon; it's kind of a niche site (for ID Card purchases online), but will be immensely helpful to the (non-profit) group that's going to use it.
Quite nice, imo :-)
Thanks for your help, pxlar8!