Expose a view's filters both in a block, and in the actual view
I made a View, and I exposed the filters in a block; then, in the block's administrative screen, I set this block not to appear in the view that belong. In the actual view I don't want to show this block. Instead, I want the filters to appear in the content as they normally would if I didn't expose them in a block.
If that makes any difference, I am using Drupal 7.
Answers 4
My understanding is that your view has exposed filters and that Exposed form in block is set to Yes.
To put the exposed form where it would appear if it weren't in block, you should be able to place the exposed form block into your Content region, above the view itself.
To have the exposed form displayed in both the view and a separate block, leave the form in the view and create a PHP block with the following body:
The accepted answer did not work with Drupal 7 for me. I followed http://www.drup-all.com/blog/exposed-filters-form-your-custom-block-drupal-7 with success. Code below:
There is a Views UI alternative to the accepted answer, at least with Views 3 / D7:
It's worth saying that with this method you can now edit the search block and remove some filters, add markup... (but no filters that would not be in the mother view I believe).
You can even reproduce steps and have different custom blocks pointing to the same view.
I've done that recently and found it very useful