This mini tutorial guides you through the steps required to create a view that can be filtered or searched using keywords. When the View is run, the Views module joins the result of the View with the Drupal search index, yielding a filtered sub-set. You can choose to have the search box above the view results, or in a separate block (step 3).
Versions used: Drupal 6.10 with Views 6.x-2.3
- Create a View and add some fields and filters as you normally would, or open an existing view
- Add a Page display
- Optional: Set Basic Settings > Exposed form in Block to Yes to disconnect the search box from the View into a Block
- Add a Filter Search > Search Terms
- Click Expose
- On empty input: Show all
- Filter identifier: q (i.e. mysite/mypage?q=keyword)
- Label: Filter by keyword
- Optional: checked
