Hỏi về cách custom search & result

Hi Thế Hồng.

Mình mới nghiên cứu drupal, hiện nay mình có vấn đề về custom form search theo ý riêng. Site của mình là website về travel có 2 content type chính: hotel, tour

- Chỉnh sửa giao diện form advanced search, thêm hoặc bỏ các tiêu chí search
- Chỉnh sửa giao diện kết quả tìm kiếm của từng loại tour, hotel.

Rất mong Thế Hồng có 1 bài viết step by step về vấn đề này để cho những người mới như tôi có thể học hỏi.

Thanks

Comments

Tùy biến form search mặc định

Tùy biến form search mặc định của Drupal thì khó lắm, thay vì vậy người ta thường dùng views với tính năng exposed filter. Ở views 3, người ta đã có thể thực hiện truy vấn đến các nguồn dữ liệu khác ngoài DB, Robert đã có ý tưởng rất hay khi kết hợp Views 3 với Apache Solr: http://acquia.com/blog/views-3-apache-solr-acquia-drupal-future-search - Tuy nhiên, việc cài đặt Apache Solr không dễ chút nào.

Tôi sẽ cố gắng có bài hướng dẫn về việc dùng views (2) để xây dựng search form.

Thế Hồng

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <sup> <br> <p> <h3>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.