Magic: How do you get Drupal 7 Views to expose filters in blocks?

Have you found that you created a view that needs a block with exposed filter, but, the exposed filter don’t show up?? There is magic that makes the “exposed” filter display. Exposed filters automatically display when selected on view pages, but, not on blocks.

Recently I needed to create a view block (via Views 3) with exposed filter. I defined a view page with an exposed filter. It worked great and I moved on to the Block. The exposed filter did not display in the block … What’s going on???? Well, I found how to create the block with exposed filter.

Solution:

To create view block in Views 3 … start fresh

  • Select to create a NEW view
  • Unclick the “Create a Page.” Currently, View 7x-3.7 requires you not create a Page when you require a Block to expose a filter in the block.
  • Click “Create a Block”
  • Define you block, select to expose your filter.
  • Voila!!

Leave a Reply