Using Deploy with Views Bulk Operations
The View Bulk Operations module allows operations to be executed against a group of nodes as selected by a View. This is a powerful tool for granularly performing actions against nodes. Deploy functionality is supported by Views Bulk Operations just like it is on the content list form. As an example, Deploy contains a default view at admin/build/deploy/choose_nodes which will be enabled if you have the Views Bulk Operations module installed. Note that by default this View is only viewable by users with 'administer deployment' permissions. This view allows you to filter nodes by content type, front page flag, author and/or post date. You can then easily select nodes to add to a deployment plan or deploy immediately. The view serves as a good sample of how you can use Views Bulk Operations to build a view for integration with Deploy functionality.
If you wish to create your own view from scratch, here's how. (Note these instructions assume some familiarity with Views.)
- Create a new node view per whatever needs you have as normal.
- Add a new Page display to this node.
- Set the Page Style to Bulk Operations.
- Click the 'gear' to adjust the settings for this style.
- Under 'To execute operations' select 'Invoke them directly'. Currently Deploy does not support the 'Use Batch API' option.
- Under 'Selected options' add 'Add to deployment plan' and 'Deploy'.
- Update the settings, give the page a path and save the view.
Now visit your page. You should be able to select a set of nodes as you wish, choose 'Add to deployment plan' from the drop down above the list, and add those nodes to a deployment plan. Combining this functionality with well thought-out exposed filters can create a powerful tool for granularly deploying groups of nodes.
