- πΊπΈUnited States mmlmitchell Spokane, WA
While I see this issue is 4 years old, I have the same issue with VBO 4.2.5.
I need to pass the value of the "contextual filter" from the View (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 to use Trevor's solution in a custom module, but it's not working. I think the three things need to happen:
- Get the value from the contextual filter on the View,
- Create the parameter with value, and
- Amend the redirect URL with the parameter
Any hints, suggestions, and idea would be appreciated.
Thanks!
- π΅π±Poland Graber
Why do you need to pass that contextual filter explicitly as an URL parameter? You have contextual filter values in the VBO tempstore data.. That's also where any other values could go. Check output of
$this->getFormData($view_id, $display_id);
in your form builder that extendsDrupal\views_bulk_operations\Form\ConfigureAction
or usesDrupal\views_bulk_operations\Form\ViewsBulkOperationsFormTrait
. - π«π·France damien laguerre
I encounter a similar issue with a view facets filter.
Everything works fine, except if I want to apply the action to all result pages.
The facets module does not identify which facets filters are active on the batch route.I found a (quick and maybe dirty) solution by passing the "f" parameter to the query.