0

The title explains a lot.

I have a view which shows everything of the content type and has exposed filters.(<-main view)

Now I made another view where I used the exposed form style because I want it to act as a "search block". It shares the same filters as the main view and I want this to pass its arguments to the main one.

For example: A user is on the main page, fills in the filters, submits-> Redirects to the main view where the filters the user filled in are now being used.

I looked for a lot of solutions but couldnt find any. Thanks in advance!

1

In your view on right hand side there is "Advance" toggle under that "Expose form" is there click on Exposed form in block "No" to "Yes". Now you can find that expose filter in system block. You can place that block anywhere you want you will redirect to that main view.

  • There is no such option? – JaymevG Aug 3 '15 at 10:29
  • I am using views 7.x-3.11 and i can find this Under relationships toggle in views. – vgoradiya Aug 3 '15 at 10:45
  • Would you be so kind to provide a screenshot? I am using the latest drupal version and checked thoroughly but it is not there :D – JaymevG Aug 3 '15 at 11:10
  • 1
    @JaymevG check that your views has page display or block display. Because this option is only available in Page display. – WaQaR Ali Aug 3 '15 at 11:43
  • 1
    Yes, it requires views page to be created. – vgoradiya Aug 3 '15 at 12:34
1
  1. First add views using Page display.
  2. On right side under Advance > Exposed Form > Exposed Form in block > Yes
  3. Now you can see an expose filter block is created automatically. Go to admin > structure > blocks find and place your newly created block at desired region. You can check that it will redirect to that main view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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