I have a filter in my view "Node type is one of story" lets say
but when I use the filters of the block all other node types appear on the results

meanwhile if I disable the block and the regular filters appear on the View's page then the filters are working as intended

Comments

douggreen’s picture

Priority: Critical » Normal

I just created a test that worked fine -- see http://drupal5.douggreenconsulting.com/drupal/node/134257.

Things to look at:

  • Do you have clean-url's enabled? At one time not having clean-url's enabled caused problems.
  • Is your exposed filter optional or required? If it's optional, and when you first visit the page, it will not have a value, and thus you'll get all results

Other than just disabling the filter block, can you isolate what it is about your view that is different than mine. You gave a rather simplistic test case, which was not your real view (you said, "let's say..."). And I am not able to recreate the problem with this simplistic test case.

giorgosk’s picture

Doug

I am actually not working with clean URLs - I am on my local machine with XAMPP

As soon as I move this on my shared host I will try to see if there is actually a problem

I presented a simplistic case (my fault) since I was actually convinced that it does not actually work for ALL cases

mcvecka’s picture

I've encountered the same problem. It appears only with the clean URLs disabled. After pressing the filter's 'Submit' button I'm getting the following URLs:

1. with the clean URLs enabled (proper behavior -- only the related nodes are shown):
www.example.com/topics?op0=OR&filter0%5B%5D=1

2. with the clean URLs disabled (frontpage is displayed):
www.example.com/?op0=OR&filter0%5B%5D=1

However, I get the correct output if I manually type the URL:
www.example.com/?q=topics&op0=OR&filter0%5B%5D=1

douggreen’s picture

Status: Active » Fixed

I've checked in a fix for non clean-url's. This should fix this problem. Please test with the latest 5.x-dev branch and let me know if this works for you or not. Thanks!

mcvecka’s picture

I can reproduce the problem with the version:

5.x-1.x-dev 2007-Apr-12 (views_filterblock.module,v 1.4.2.11 2007/04/11 13:10:11)

Is there any later version available?

Status: Fixed » Closed (fixed)

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

MohammadMoussa-Lebanon’s picture

hello evrey body ,im trying to make a website for sales, but im facing a problem which is , i have 3 categories appartments (for sale , for rent , to buy ) ,lands (for sale , for rent , to buy ) , buildings (for sale , for rent , to buy ) ,
all i want to do is to place 2 select boxes and let the user select in the first box if he want appartment wo land or buliding and in the second box for sale or for rent or to buy and click a button which create a query and show all in the same page, i mean all results must be in the same page,please help me im a new drupal user ,its a hard problem:S:S:
thanks alot

MohammadMoussa-Lebanon’s picture

giorgosk’s picture

@che_viva
this request should go in a separate support issue

http://drupal.org/project/issues/views_filterblock
create issue

or support forums