I've written a custom action which is listed as an advanced action.
In the advanced action configuration I set up an instance of this action called 'Add contacts'
In the view configuration for vbo, the custom action is listed, by my instance is not.
If I select the custom action, it asks me to fill in the url. This is not what I need, I need the url to be pre configured.
Screen shots attached.
P.S. Thank you for the quick response yesterday.
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2011-07-07 at 4.23.08 PM.png | 18.81 KB | diricia | |
| Screen shot 2011-07-07 at 4.22.41 PM.png | 33.08 KB | diricia | |
| Screen shot 2011-07-07 at 4.22.28 PM.png | 55.97 KB | diricia | |
| Screen shot 2011-07-07 at 4.21.46 PM.png | 98.76 KB | diricia |
Comments
Comment #1
bojanz commentedYeah, VBO no longer supports advanced actions (actions that you save in the actions UI), it pulls the actions directly from hook_action_info().
So you need to prefill the URL in the action code.
VBO in D6 supported advanced actions as well, but I'm not really sure we need to do so in D7. Didn't see a need for it so far (especially since most people used it to have custom labels, and VBO now does that out of the box), but I'm willing to change my mind on this.
Comment #2
bojanz commentedIn case someone wants to add a +1.
Comment #3
infojunkie+1 ;-)
Comment #4
bojanz commentedOkay, consider me persuaded :)
I did a look around, it was actually removed just before alpha3 by mistake, so bringing it back shouldn't be too hard.
Comment #5
diricia commented+1 Espescially useful for the 'Pass ids as arguments to a page' action. I would not like to rewrite the action for that everytime I want to redirect to url.
Comment #6
bojanz commentedCommitted.
http://drupalcode.org/project/views_bulk_operations.git/commitdiff/9d473...
http://drupalcode.org/project/views_bulk_operations.git/commitdiff/75705...