Spokane Drupal Question: How to modify the VBO Action Form URL

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by mmlmitchell on December 30, 2023 at 6:46pm

Hello,

I have a view with VBO action to "modify fields." I need to pass the value of the View "contextual filter" (which in my case is a Group ID) through to the VBO action form as a URL parameter (i.e. "group=[value]").

The current URL that redirects to the "confirgure" page is this:
/views-bulk-operations/configure/[search_id]/[page_id]

What I need is this:
/views-bulk-operations/configure/[search_id]/[page_id]?group=[value]

Note, "group" is the name of the parameter, "[value]" is the Group ID from the contextual filter.

I've tried build a custom module, but it's not working. I'd be happy to share that code. I think three things need to happen:

  1. Get the value from the contextual filter on the View,
  2. Create the parameter with value, and
  3. Amend the redirect URL with the parameter

Any hints, suggestions, and idea would be appreciated.

Thanks!

Comments

I think this would be a great

Posted by cprofessionals on January 1, 2024 at 2:14am

I think this would be a great group get-together after the new year. There are several ways to get this done. Let me know if you want to do this as a group.

Follow-up

Posted by mmlmitchell on November 22, 2024 at 5:49pm

Sorry for the delayed follow-up, I got caught up in life. Thanks for the offer to help with the VBO issue. Like many things in Drupal, there are many ways to do a specific thing. In my case I have been working with the ECA module (https://www.drupal.org/project/eca_) and found good success with the VBO sub-module.

BTW, is the Spokane group still meeting?

Spokane, WA

Group notifications

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

AltStyle によって変換されたページ (->オリジナル) /