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
Comment #1
bojanz CreditAttribution: bojanz commentedYou 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).
Comment #2
netourish CreditAttribution: netourish commentedHi 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..
Comment #4
maxplus CreditAttribution: maxplus commentedHi,
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?
Comment #5
vegansupreme CreditAttribution: vegansupreme commented@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!
Comment #6
vegansupreme CreditAttribution: vegansupreme commentedI'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!
Comment #7
jw100 CreditAttribution: jw100 commentedHi 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.
Comment #8
vegansupreme CreditAttribution: vegansupreme commentedFor reference, here's my code:
https://github.com/vegansupreme/id_actions.git
It adds a handful of PLUS, and COMMA separated actions.
Comment #9
ascii122 CreditAttribution: ascii122 commentedHey vegansupreme thanks so much .. that totally did what I needed.
cheers