7

I want to make custom search block on home page, in header region. I'm using Exposed filter block in Views module, but results on the page are shown just below the block, in header. I want results of the search to be shown on the other page, like regular search do. Is there a way to achieve this. I'm using Drupal 7.

  • Have you tried put exposed filter to a block, so you can assign the block to any region you want. And search result in content region. Is that what you are looking for? – gilzero Nov 11 '12 at 17:32
  • I assigned my exposed block to header region but it shows results just bellow exposed box. What I want to achieve is to have search box just like core Drupal search box but use Views modul and exposed filter to make something like that. Problem is that with exposed filter I didn't find the way to make search results show on other page (to redirect results to other page rather than to show them bellow exposed search box). Tnx! – Ivan Nov 11 '12 at 17:50
9

Create a page view using filter you want.
Step 1) Enable the block in your View

enter image description here


Step 2) Put the exposed filter block where you want it to be
enter image description here
Step 3 ) Test the result
enter image description here

  • Thank you so much. I cannot believe it was so simple. I was trying almost everything but the biggest mistake was that I was always starting with block and not with page itself. – Ivan Nov 12 '12 at 13:43
  • What's defining that the results go in the content region? You left that out. – AlxVallejo May 31 '14 at 11:25
2

One more thing for people using "Content pane" display in views. You need to set "Use Panel path: Yes" in order to fix this issue.

protected by Community Mar 18 '14 at 12:46

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.