By arbel on
Hello,
I'm trying to create a search functionality based on the exposed filters (or any other good way?)
I'd like the main page of the site to have the search form, using exposed field filters. and when you click the apply button, the page is redirected to a search results page with the form and the view (like always).
anyone have an idea how I can achieve this?
is there are better way to do the search - i like this method because I can easily theme the results and the form.
thanks
Idan
Comments
One idea
You can output the exposed fields as a block from the Views edit interface. Ive never tried this, but you could try embedding that block inside your search page. Im not sure if the block has to be on the same page as the view itself - if not, this should work.
this works great. what I did
this works great. what I did is expose a block for the exposed filters.
placed the block on it's own on the front page.
then when I click apply on the block fields, I get redirected to the page display of the view.
thanks
I'm trying to do the same
I'm trying to do the same thing but it's not quite working. I created a View with two exposed filters and then created a block display and placed that block in the left sidebar. The block shows but so do all of the results. I would like just the exposed filters to show and then get redirected to a results page. How might I do that?
I would also like to know how
I would also like to know how you redirect it to another page