Trigger a view bulk operation with Rules 2 and Drupal 7

Events happening in the community are now at Drupal community events on www.drupal.org.
vanz's picture

I'm trying to trigger a simple view bulk operation (unpublish a batch of nodes) with Rules 2 and Drupal 7. I've been trying to add an action but only get exposed Load a list of entities from a VBO View while I'd be waiting for "Execute a VBO" or similar instead.

Is there anything I'm missing ?

AttachmentSize
vbo-rules.png20.6 KB

Comments

That action is no longer

itangalo's picture

That action is no longer available in Drupal 7. Instead, you can use the VBO to load a list of nodes, and then loop through the list to unpublish each node.

An example of how it can be done is found here: http://dev.nodeone.se/en/using-vbo-to-load-list-of-objects-into-rules

Good luck!
//Johan Falk
**
Check out NodeOne's Drupal Learning Library! 250+ screencasts and exercises, for Drupal introduction, advanced configuration, and coding. Creative Commons license!

Thank you very much ! I'm

vanz's picture

Thank you very much ! I'm going to look into this carefully.

Performance difference?

playfulwolf's picture

A bit of outdated topic but is there a performance difference in those two approaches? Old "fire VBO" seems to be much faster, as it is basically just generated database query, right?

drupal+me: jeweler portfolio

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week