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

merlinofchaos’s picture

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.

greg911’s picture

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

merlinofchaos’s picture

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

greg911’s picture

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.... :-)

moshe weitzman’s picture

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

Please close this if it is a dupe.

greg911’s picture

Status: Active » Closed (fixed)
merlinofchaos’s picture

Status: Closed (fixed) » Active

Actually this is still a valid feature request.

greg911’s picture

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

merlinofchaos’s picture

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.

heng’s picture

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

merlinofchaos’s picture

Should be fixed now.

heng’s picture

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

greg911’s picture

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

Greg

markc2004’s picture

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

markc2004’s picture

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

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

doublejosh’s picture

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

naseem_sarwar’s picture

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 ?

teodyseguin’s picture

Issue summary: View changes

I also experienced the problem on my end. I have a views block, with some exposed fields. At first, I was wondering why the exposed filter form is not showing up and did a various of combination with no success. I have found this solution "enabling ajax" did the trick. Thanks for this suggestion.