{"id":716,"date":"2014-04-21T05:22:41","date_gmt":"2014-04-21T05:22:41","guid":{"rendered":"http:\/\/www.advancedwebhelp.com\/blog\/?p=716"},"modified":"2014-04-21T05:22:41","modified_gmt":"2014-04-21T05:22:41","slug":"magic-how-do-you-get-drupal-7-views-to-expose-filters-in-blocks","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2014\/magic-how-do-you-get-drupal-7-views-to-expose-filters-in-blocks","title":{"rendered":"Magic:  How do you get Drupal 7 Views to expose filters in blocks?"},"content":{"rendered":"<p>Have you found that you created a view that needs a block with exposed filter, but, the exposed filter don&#8217;t show up??   There is magic that makes the &#8220;exposed&#8221; filter display.   Exposed filters automatically display when selected on view pages, but, not on blocks.<\/p>\n<p>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 &#8230; What&#8217;s going on????  Well, I found how to create the block with exposed filter.<\/p>\n<p>Solution:<\/p>\n<p>To create view block in Views 3 &#8230; start fresh<\/p>\n<ul>\n<li>Select to create a NEW view<\/li>\n<li>Unclick the &#8220;Create a Page.&#8221;  Currently, View 7x-3.7 requires you not create a Page when you require a Block to expose a filter in the block.<\/li>\n<li>Click &#8220;Create a Block&#8221;<\/li>\n<li>Define you block, select to expose your filter.<\/li>\n<li>Voila!!<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Have you found that you created a view that needs a block with exposed filter, but, the exposed filter don&#8217;t show up?? There is magic that makes the &#8220;exposed&#8221; 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) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-716","post","type-post","status-publish","format-standard","hentry","category-drupal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/comments?post=716"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/716\/revisions"}],"predecessor-version":[{"id":718,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/716\/revisions\/718"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}