Closed (outdated)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
exposed filters
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2009 at 21:02 UTC
Updated:
1 Aug 2017 at 14:44 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedNot with the same URL, unfortunately. You might be able to do some stuff with blocks with exposed filters, and exposing the filters in a block (that's weird) and have them all go to the same URL, but it only really works if the base 'page' filter has *all* of the filters as possible and any that might not be present are set to be optional. That *could* work. Maybe.
Comment #2
azoho commentedThanks merlin,
what I want to do is have a block with filters for title, author, fulltext search, category. And another block just for fulltext search. So my base page has all the filters enabled.
Plan is to show the 1st block on my frontpage, and the 2nd block in the header of all pages. It all leads to a catalogue page.
How would I get more than one exposed filters block?
Comment #3
azoho commentedI just realised I have been saying 'expose filter blocks' when they are actually referred to as 'exposed form as block', so what I want is to several of these form blocks, each with separate set of filters, all leading to a single catalogue search page.
Comment #4
azoho commentedComment #5
dawehnerThis might be possible with a custom exposed form plugin.
Comment #6
danny_joris commentedI believe I had a similar issue and this is how I solved it.
What I have:
I have one views page with a path named, say content_list. This page includes an exposed filter of 3 taxonomy term drop down lists.
What I need:
I want to add another block with exposed filters which I can put on every page of the site. Using this exposed filter form will redirect to the content_list page and filter the content there.
How I solve it:
I add another page display on the same view which looks exactly the same as the original page. The only differences are: I name the path content_list2 and the exposed filters are displayed in a block. I show this block on every page except on content_list.
In a custom module I add this:
Note: I believe this would only work if the original content_list page has the same filters enabled as the exposed block...
It's a tweak, but I hope it is helpful for others as well.
Comment #7
dawehnerCool. I think people could use your code
Comment #9
giorgoskdon't need a custom module to override action path
can also use something like this in your template.php
instead of THEMENAME can also use "phptemplate"
EDIT:
warning: this is untested codeabove code does not do the job
need to re-render the form and I don't know how to do it
Comment #10
playfulwolf commentedAny ideas how to do this on Drupal 7?
Comment #11
user654 commented.
Comment #12
mimrock commentedThe issue is not solved in Drupal 7.
Comment #13
berliner commentedFrom some ideas I found on the web while trying to solve this problem, I wrote a module that provides one additional block. Give it a try, maybe it works for you: https://drupal.org/sandbox/berliner/2087181. I explained the rationale behind it here: http://blog.dev030.com/posts/additional-exposed-filter-block-views
Comment #14
mlanning commented#13 is working great for me so far. Exactly what I was looking for. Thank you berliner!
Comment #15
mustanggb commented