How to put exposed filter in a separate block in a view in drupal 7

落爺英雄遲暮 提交于 2019-12-23 16:09:13

问题


With drupal 6 I could easily choose to have the exposed filters in a separate block which I could then put on the sidebar. I can't figure out how to do that in drupal 7. Anyone know? Thanks, Diana


回答1:


  1. Create a page view

  2. Adjust the settings

  3. Make sure you expand the advanced tab




回答2:


For D7 blocks, setting 'Use AJAX' to Yes worked for me.

Also, with two blocks on the same page filtering the same fields (but different data/views), it seems applying a filter from one block affects both blocks. Not sure how to work around that yet.

Clarification: In Advanced -> Other, set 'Use AJAX' to Yes




回答3:


For D7 use module - Views Block Exposed Filter Blocks https://www.drupal.org/project/views_block_filter_block

After enable this module you will see new settings in Exposed Form fieldset see screenshot - example

This solution also works with panels.



来源:https://stackoverflow.com/questions/14734145/how-to-put-exposed-filter-in-a-separate-block-in-a-view-in-drupal-7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!