Hi All!

Can multiple actions be configured for operations such as (Execute arbitrary PHP script,Pass ids as arguments to a page, Redirect to URL, Send e-mail). This will be very useful as there may be different menu items performing different features or need to send different emails with different subjects/body message.

I thought creating different bulk operations would solve this, but it resulted in different columns of checkboxes for respective operations. Can these columns be simulated into a common one? If yes, then it solves the issue.

I have done a decent research for this, But still please ignore if a solution is already exists for this and please guide me to that.

Overall it's a great module, hoping to see a stable 7 release soon.

Cheers!

Comments

bojanz’s picture

Category: feature » support
Status: Active » Fixed

You need to use the Actions UI that ships with Drupal core (admin/config/system/actions).
Note that not all VBO actions can be instantiated this way ("Pass ids", "modify entity values" and "create an archive of selected files" can't).
This is because of the general poor state of actions in Drupal core.
A better alternative is using Rules 2 components (which would allow you to create multiple redirect operations as a replacement for "pass ids", for example).

netourish’s picture

Hi bojanz !

Thank you very much for the explaination.
For the time being I have written custom actions to meet the requirement and used them in the vbo.
But, integrating this through rules 2 components seems to be a promising alternative, I will definitely try that.

Thanks a lot..

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

maxplus’s picture

Hi,
I was wondering how a component in RULES can do the same thing as the function "Pass ids as arguments to a page" from VBO.
The "Pass ids as arguments to a page" is a nice function because it feeds one page view with multiple arguments.

When I create a RULE (or component), a action is applied to every single selected node instead of collecting the selected nodes and pass them as one group as argument to a page view.

Does anybody know how you can do the same thing from VBO in combination with RULES to collect all the selected items and give them as one argument (or combined list) to a page view?

vegansupreme’s picture

@maxplus

I'm looking for the same thing. Have you figured out how to do this? Please post a solution here if you find one. I'll do the same!

vegansupreme’s picture

I've finally figured out a solution. I made a custom module that was just a copy-paste of the "Pass ids as arguments to a page" code from the VBO module with renamed functions. Duplicating code in this way seems like not the right way to do things, but it worked, and I don't know how else I could have done it. If anyone would like more details, or would like to tell me I'm doing it wrong ;-) please let me know!

jw100’s picture

Hi vegansupreme,
Just run into the same need to create several "Pass arguments to a page" in VBO.
I'd be really grateful for any further pointers (or code!) to replicate your custom module solution.
Thanks!

UPDATE :)
This was easier than anticipated - and of course, implementing a new action is also well documented.
Happy to assist if anyone else found this tricky.

vegansupreme’s picture

For reference, here's my code:
https://github.com/vegansupreme/id_actions.git
It adds a handful of PLUS, and COMMA separated actions.

ascii122’s picture

Issue summary: View changes

Hey vegansupreme thanks so much .. that totally did what I needed.

cheers