Download & Extend

Use AJAX to offer exposed filters on block Views

Project:Views
Version:6.x-2.0-rc1
Component:block displays
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I created a block view (and a page views) to see my latest 10 posts.
I have 3 filters which are exposed and "visible" on the page view. But those filters doesn't appear in the block view.

I found a post on angrlydonuts (http://www.angrydonuts.com/displaying_views_exposed_filters) but this refers to View1 (and 1.1) and is dated of 2006.... I gave it a try anyways and the only thing I came up with is a lot of PHP errors :-(

Thank you very much for your help

Comments

#1

Block views don't actually support exposed filters, because they don't have a URL, and the filters need a URL. Though theoretically the AJAX setting could allow them to support exposed filters and use that instead.

#2

Thanks for the quick answer. Is the AJAX's exposed-filter is planned as a future improvement in the more-than-excellent View module ?

#3

Good question. It probably should be; I honestly haven't thought about it, but it makes sense.

#4

Status:active» fixed

Thanks for your help ! I'll look forward a block view (or try to create a patch for Views that enables it ... but that may take a while.... :-)

#5

Title:Exposed filters not present on block View» Use AJAX to offer exposed filters on block Views
Category:support request» feature request
Status:fixed» active

Please close this if it is a dupe.

#6

Status:active» closed (fixed)

#7

Status:closed (fixed)» active

Actually this is still a valid feature request.

#8

Sorry, I thought moshe weitzman wanted me to close it because it was duplicated !
My bad !

#9

Status:active» fixed

I've committed a fix that should allow this, but due to time constraints I have not tested it very well. I would love it if someone following this could do so.

#10

ok... I installed the latest dev version and created a view with an exposed taxonomy id filter.

The exposed filter is showing in my block if I turn AJAX on but if I choose an entry and hit "submit" my browser shows a warning "An error ocurred on /.../index.php?q=views/ajax".

If I go to the admin->blocks section i get a red box with the following

EDIT: After that when loading a new page i get the following

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'views_ajax' was given in C:\Inetpub\wwwroot\TEST-Intranet\includes\menu.inc on line 346.

I'm running an IIS6 with the latest PHP

#11

Should be fixed now.

#12

It is! Good work and very fast :) Thanks a lot

#13

Thanks merlin !
As usual, you're the best !!

Greg

#14

Hi guys,
I have the same problem - how does the fix work? I've done all the drupal updates and turned on the ajax in the basic settings
Any help greatly appreciated!
Thanks
Mark

#15

sorry - my bad. Didn't install correctly. Works fine now
Thanks

#16

Status:fixed» closed (fixed)

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

#17

This rocks my world. Thanks all for the request and Merlin for the addition.

#18

what is the process of installing update. i think i got the same issue. couldnt fix that issue on my live site but working perfectly on my local machine.
any help ?