Closed (fixed)
Project:
Views Filter Block
Version:
4.7.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
19 Dec 2006 at 10:46 UTC
Updated:
1 Jan 2007 at 13:02 UTC
Hi, i like idea behind this module. But there is a problem!! When i submit something in a block i get the home page and not the results in the view. This is because the address of search doesn't include the view address.
Example. I'm searchin in view named "atti". When i do the search trough the block i get ?op0=contains&filter0=sfds&op3=%3D&filter3=&op2=%3D&filter2=&op1=OR&edit%5Bform_token%5D=46f43694e0264b50d8ab16df576e8bb9
the normal filter search instead get ?q=atti$op0=contains&filter0=sfds&op3=%3D&filter3=&op2=%3D&filter2=&op1=OR&edit%5Bform_token%5D=46f43694e0264b50d8ab16df576e8bb9
Something missing??
thanks
Comments
Comment #1
zaphod280380 commentedsorry in the correct example there is a dollar($) instead of an ampersand (&). this is what we need.
?q=atti&op0=contains&filter0=sfds&op3=%3D&filter3=&op2=%3D&filter2=&op1=OR&edit%5Bform_token%5D=46f43694e0264b50d8ab16df576e8bb9
Comment #2
douggreen commentedI fixed this a few days ago in CVS, however, it looks like I forgot to create a development branch project. Please download the latest development project. The Drupal project system takes up to 12 hours to add a new project, so if the Drupal project system hasn't created it yet, you can get it directly from CVS here:
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/views_filterb...
Please download/view the latest version (which as of this writing is 1.2.2.4). You'll see that I think I fixed this problem in version 1.2.2.3. If this fixes the problem for you, I will generate a a new 4.7.1.2 release, so please let me know if this fixes it.
BTW, this problem doesn't exist if you use clean URLs.
Comment #3
zaphod280380 commentedIt works! Thanks!
There's another (minor?) problem. I can put this block only in default drupal's block areas (siderbar left and right). If i try to put it in customized ones it seems to work but the original exposed filter form of the view doesn't disappear. So there's a duplicate.
Comment #4
douggreen commentedI was able to test putting it in the header, footer, and content areas without problem. However, the code does specifically look for these block names. A more generic solution would be to use system_region_list() to pull the available block names. But before I make this change, could you please tell me a little more about the problem. What customized blocks are you trying to put them in? And how are you creating the customized blocks? Is this in the theme?
Comment #5
douggreen commentedThe original part of this request is fixed. If you need the expanded block support, please submit a feature request. Thanks!
Comment #6
douggreen commented