Open klonos opened 5 years ago
In comparison to VBO 7.x, there's also one bulk operation missing in D8 and Backdrop: "Modify entity values". As a site builder without coding skills, I find it very useful.
For D8 there are contrib modules like Bulk update fields and Views Bulk Edit to help out. For feature parity with 7.x, I suggest to include the missing "Modify entity values" operation to Backdrop core.
Below a screenshot to show the "Modify entity values" setting from VBO 7.x:
Thanks @olafgrabienski 👍 ...I've added that to the task list in the issue summary.
I've started work on a contrib modify_field_values
module to add this one operation for a client site. (Let me know if you think I should call this views_bulk_operations
instead, and extend it for all the missing operations.)
The action API in Backdrop core is not the same as it was in VBO, so it won't be simple to add most these more complex actions.
VBO extended the API to allow for a form as the secondary step of the action, submit handlers, access callbacks, etc. Instead, Backdrop core leverages an existing page callback that already has the form (for things like node delete and user delete) and shoves necessary information for that form into the $_SESSION
.
Additionally, VBO leveraged the trigger system to execute the action. Backdrop core has no trigger system (that was removed from core) and instead executes the action on demand.
Blarg, fingers crossed this works!
I've started work on a contrib
modify_field_values
module to add this one operation for a client site.
That's great, I'm looking forward to test it!
(Let me know if you think I should call this views_bulk_operations instead, and extend it for all the missing operations.)
Not sure, I'll leave the answer to @klonos or others!
(Let me know if you think I should call this views_bulk_operations instead, and extend it for all the missing operations.)
Sounds like a great idea to me @jenlampton 👍 ...that way, people installing that contrib would get the functionality we left out when we implemented VBO "light" in core.
...we are pretty much doing the same with other contrib, such as Save Draft. Once some of their features are added to core, they are removed from the contrib module, then a new release of that module is created by the maintainer, and this new release also includes a dependencies[] = system (>=1.x.0)
line in its .info file (where x
is the minor version of core that includes the feature(s) previously included in the contrib module). This prevents installing the new version of the module on an older version of core (that does not include the features).
...I would personally make a release with dependencies[] = system (<1.[new-core-minor].0)
first, then remove the added-to-core features, then create another release with dependencies[] = system (>=1.[new-core-minor].0)
😉
A quick update here: my one-hour task turned into a five-hour task yesterday, so I ended up just hard-coding the entity type (node) and field (taxonomy_term_1) that my client needed to be able to change.
The good news is that that's working, so if anyone else needs to do the same in a pickle, they can: https://github.com/jenlampton/modify_feild_values
The bad news is that this isn't yet a comparable alternative to VBO for Drupal 7.
Thanks @jenlampton 👍 multiple typos in the README indicate that you must be tired after this task 🙂 ...if you moved it to contrib, I'd help with that.
It's not suitable for contrib since it only works for one field, and that's hard-coded. I'd need to at least make a UI for selecting which field.
@jenlampton thank you so much for this! Came in very useful :)
Another item that should be added to the list - "Change author of content" or "Change Owner".
This is a great admin action!
I've added that to the list in the issue summary @Wylbur
@klonos and others interested - In the meantime @argiepiano has ported the Views Bulk Operations contrib module to Backdrop, see this comment in github.com/backdrop/backdrop-issues/issues/3646 for details. I'm tending to close this issue and mark it as contrib candidate
. What do you think about it?
Here's the options we provide when configuring VBO (same as D8 core Views, so, we have feature parity):
Here's what VBO 7.x provides:
Features/options missing: