I've used Panels to create a custom page with a VBO view in it. Whenever I try choosing row(s) and applying an action, I'm redirected to the site's home page, and the chosen action is not actually applied. This happens both from the panel's preview and after publishing it and using it as a regular page.
I'm currently using:
Views 7.x-3.0-rc1
VBO 7.x-3.0-beta1
Panels 7.x-3.0-alpha3
CTools 7.x-1.0-beta1
Any idea what's wrong?
Thanks,
Tal
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 1226284-10.patch | 1.17 KB | marcoscano |
Comments
Comment #1
bojanz commentedYeah, embedding the VBO view anywhere at the moment seems to fail. I hoped it would at least work from a Panel. Will investigate soon.
Comment #2
bojanz commentedWhen embedding the view you need to set "Override Path" in the settings, to the current panel url.
When you open the "Content" part of the Panel Edit Page, you have your view (shown as View: $YourTitle), and a gear in the top right corner. Click it, then click Settings and at the bottom of that page there's "Override Path". I'll add a note to the README about this.
Comment #3
therainmakor commentedI hope you don't mind me opening this issue back up since vbo views that are embedded as view panes do not have the override URL setting. I am using organic groups and built a node panel with a vbo view. Even if there was an override URL setting, how would one pass the node ID to the URL since the only argument in the view is a group ID.
Thanks for your help?
Comment #4
bojanz commentedI'm not sure I understand? The Override URL setting is in Panels, so yes, an embed views pane has it. On the same page you can select to forward arguments from panels to views.
Comment #5
itangalo commentedAnother approach is to use the "Use panel path" option, in the Content pane section in Views. In this way, you won't even have to set the path of the custom page where you're embedding the view.
Ideally this should happen automatically, but I will still mark this as fixed.
Comment #6
succinct commentedI'm having the same issue, even after choosing "Use panel path" in the View. When I check $_GET/$_POST after the submit, they're empty.
Has anyone found a solution?
Comment #7
videographics commented...confirming #5 works consistently for me.
Comment #8
maartendeblock commentedAbove solution did not work for me. This could be because I work with 7.x-3.1.
Just creating a view with a page and setting 'Send arguments' on the pane settings did the trick for me.
Comment #9
dalinThe problem is not just with Panels, but any time the current URL is not the same as the view's URL. Could VBO detect this situation and compensate?
Comment #10
marcoscanoThe patch attached deals with QuickTabs that load the view using AJAX. Not sure which other problematic use cases exist though, in order to solve it in a more generic way.