Tính năng Exposed filters ra Block trong Views 3

Tính năng Exposed filters ra Block trong Views 3

Here is a quick how-to on how to have your exposed View 3 filters as a block in Drupal 7. 

This one is fun and easy, and the most important piece of information is:

install Views 7.x-3.x-dev

Because that version of Views 3 will allow you to set the 'Exposed form in block' to 'Yes'. (it is under 'Exposed Form' and yes, it's that simple)
Views 7.x-3.0-rc1 doesn't have that option, so untill there is a Release Candidate (or full release) that has this exposed block option, the only way to do it is to use the dev version.

Here are the steps you should take to show the exposed filters as a block:

Step 1) Enable the block in your View

Views exposed block setting

Clicking yes/no will give you this option:

Views Exposed filter choices

Step 2) Put the exposed filter block where you want it to be

(the block administration page is at example.com/admin/structure/block)

Views Exposed filter block on blocks settings page

Step 3 ) Test the result

('Expose this' is the View title)

Views Exposed filter block on the front page

Hope that saved you some time puzzeling how to do it. Happy Drupalling!

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Khi nào cần chọn Quick Format, khi nào cần chọn Full Format?

Khi nào cần chọn Quick Format, khi nào cần chọn Full Format?

Trên máy tính sử dụng hệ điều hành Windows, có hai lựa chọn để định dạng bộ nhớ có thể gây cho bạn nhầm lẫn Quick Format và Full Format. Vậy khi nào thì nên chọn Quick Format và khi nào nên chọn Full Format?

Hướng dẫn cấu hình MailChimp.module trong Drupal

Hướng dẫn cấu hình MailChimp.module trong Drupal

To integrate MailChimp into your Drupal site and Drupal accounts you we need to configure it first. Here’s a step by step tutorial on how to do that.

Giới thiệu hàm rmdir sucks trong Drupal 8

Giới thiệu hàm rmdir sucks trong Drupal 8

The obvious choice is , but it doesn’t work recursively, which is when I found the example below.

Công ty diệt chuột T&C

 

Diet con trung