Drupal create custom search with Views

  • create view
  • add page display
  • set path
  • add filter
    • search: search terms
    • expose the filter if you want
  • add fields
    • title and whatever you want to show up in results
  • expose the form in block if you want a block
  • then put a search form in anywhere you want to with simple code. No form API needed:
<form action="/whatever/the/path/is/that/you/set/in/views" method="get" accept-charset="utf-8">
    <label for="search">Search this, dude!</label>
    <input class="text" type="search" name="keys" id="search" value="">
    <input class="submit" type="submit" value="Search">
</form>

Tags

Internal References

Article Type

General