It's probably me missing where it tells me what I need,but I cannot find the solution.
I have added Workflow to an existing D6.6 site with a small amount of content (300+ nodes). I then created a workflow called System Test which goes:
created -> for testing -> for engineering -> available
and added it to a custom content type. I can change the status of content created after installing Workflow, but not before. If I go to the Workflow tab of a pre-existing node, all I get is Current state: (creation) and a submit button above the workflow history table, which is blank.
I guess the short questions are "How do I set all existing nodes in a content type with a new workflow to use the workflow?" and "How to bulk update them to certain Workflow states?"
Test system:
Drupal 6.6
MySQL 5.0.67-0ubuntu6
PHP Version 5.2.6-2ubuntu4
Ubuntu Linux 8.10
Comments
Comment #1
xamountsubscribing
Comment #2
infojunkieTo answer your second question:
Workflow exposes an action called "workflow_select_given_state_action". Used in conjunction with Views Bulk Operations module (http://drupal.org/project/views_bulk_operations), you can create a view where your nodes are displayed, select them all, and then apply that action on all of them.
However, there is a problem with this workflow action in that it won't agree to move the state of the node to an arbitrary state that cannot be reached by (creation) in the first place. To remedy that, I submitted a small patch to the workflow author a while back (http://drupal.org/node/319793). You can elect to bump that patch if you will.
To answer your first question:
Maybe you can write another small action that sets the node to use the new workflow using a method similar to the one above.
Comment #3
Balefire commentedThanks for the answer - I'll let you know how it goes! Going off to bump the patch as well - I can see that it will be very useful. Unfortunately I have switched back to D5 for now - but I believe you have pointed me in the right direction for that version as well.
Update
Couldn't have been simpler for D5. Will try the same on a test install of D6. I'm going to mark this as closed. I'll re-open only if the D6 version doesn't go as smoothly.
Comment #4
Balefire commented