Somewhere between beta3 and rc1 the ability to put exposed forms into their own block's disappeared for content panes.

To reproduce:
1) Install clean site, enable Views and Content panes
2) Create a new page display. Note the option "Exposed form in block" being available.
3) Create a new pane (or context) display. Note the same option now missing.
4) Profit!

I tried with both stable and -dev of ctools aswell.

Assigning directly to dereine as I can't figure it out and it's a D7 issue.
If I can figure git-bisect out I'll pin-point the commit later.

Files: 

Comments

Using Drupal 7.4.

Project:Views» Chaos tool suite (ctools)
Version:7.x-3.x-dev» 7.x-1.x-dev
Component:exposed filters» Views Content

This seems to be a ctools issue.

Subscribe (Same applies in D6)

Status:Active» Fixed

Committed a fix that allows content panes to have the exposed form in a block back.

There may be some side effects, tho; need to see how this works for people.

Status:Fixed» Active

This patch has been reverted due to side effects.

Status:Active» Fixed

Ok, I've made commits to both Views and CTools that will fix this. Views gained a new method to control whether there can be exposed form in block, and CTools now uses it.

Status:Fixed» Needs review

I updated Views 7.x-3.0-rc1 and Chaos tool suite 7.x-1.0-beta1, I am using Drupal 7.2.

got this error

Debug:

'Exception: SQLSTATE[23000]: Integrity constraint violation: 1052 Column \'uid\' in field list is ambiguous'

in views_plugin_query_default->execute() (line 1380 of C:\xampp2\htdocs\july18\sites\all\modules\views\plugins\views_plugin_query_default.inc).
Debug:

'Exception: SQLSTATE[23000]: Integrity constraint violation: 1052 Column \'uid\' in field list is ambiguous'

in views_plugin_query_default->execute() (line 1380 of C:\xampp2\htdocs\july18\sites\all\modules\views\plugins\views_plugin_query_default.inc).

then I added:

function uses_exposed_form_in_block() {
// We'll always allow the exposed form in a block, regardless of path.
return TRUE;
}
to views_content_plugin_display_panel_pane.inc and still have error message.

I don't know if it has something to do with the views update or not. I hope you can shed some light on this. I know its not something I wrote as I have never wrote a line of code for this site.

I just don't understand why it worked before I upgraded the modules and now it doesn't!?

Status:Needs review» Fixed

I don't see how the errors you describe are related to this issue.

Also please read the link about what the status means before changing status on an issue.

Returning to previous state.

I've tested and it works.

I downloaded the DEV versions of ctools and views on July 21. No update.php required.

Thanks!

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

I'm actually still having this problem with the latest dev version. Inherit path is on and I still get redirected to the homepage.

StatusFileSize
new7.68 KB

merlinofchaos - Just wondering if these changes will be rolled back to the 6.x branches of both Views and CTools to "re-enable" the "exposed form in block" functionality for content panes. I thought maybe this had been done and switched to the latest 6.x dev releases for both but the option is still missing on the views ui.

FYI: works for "page" display types, but not "content pane" display types.

Forget it. I figured it out. I feel shame... :(

Status:Closed (fixed)» Active

same here (exp. form missing) with latest ctools version 7.x-1.2, views 7.x-3.5, panels 7.x-3.3
any idea?

I concur. Looks like its gone from latest and dev versions. Has it been removed? Can anyone spot the patch that was applied in July last year?

Looks like its been moved into a separate feature. IE.

  1. Create a views page
  2. Expose the filter
  3. Enable the `Views content panes` module (part of CTools)
  4. In panels find both the view and the filter in the new `Views` section

I've written a little post about getting this working (to remind myself of the steps mostly). http://www.drupalden.co.uk/panel-view-exposed-filters-block

The jist is that you need to create your view using 'Content pane' display type, and set the pane settings to 'using panel path = yes'.