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

CommentFileSizeAuthor
#10 1226284-10.patch1.17 KBmarcoscano

Comments

bojanz’s picture

Yeah, embedding the VBO view anywhere at the moment seems to fail. I hoped it would at least work from a Panel. Will investigate soon.

bojanz’s picture

Category: bug » support
Status: Active » Fixed

When 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.

therainmakor’s picture

Status: Fixed » Active

I 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?

bojanz’s picture

I'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.

itangalo’s picture

Status: Active » Closed (works as designed)

Another 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.

succinct’s picture

I'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?

videographics’s picture

...confirming #5 works consistently for me.

maartendeblock’s picture

Version: 7.x-3.0-beta1 » 7.x-3.1

Above 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.

dalin’s picture

Title: VBO not working from within a Panel » VBO not working when the current URL is not the same as the view's URL (e.g. when in a Panel or Quicktab)
Version: 7.x-3.1 » 7.x-3.x-dev
Category: Support request » Bug report
Issue summary: View changes
Status: Closed (works as designed) » Active

The 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?

marcoscano’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB

The 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.