Oregon State University
You are not logged in [Login]

How do I add a custom search to my site?

The following is an example form you may add to your site. Visitors to your site may use this form to conduct searches directly from your site. These searches may be for all of OSU or for your site only.
<form method="get" action="http://search.oregonstate.edu/web">
    <input type="text" name="query" size="15" maxlength="256" />
    <input type="checkbox" name="site" value="yoursite.edu/directoryname" checked="checked" />Search this site only.
    <input type="submit" value="Go" title="Search OSU." />
</form>

Limiting the search to your site

The "site" checkbox tells the search engine which site to limit its search to. To limit the search to your site only, the value of the "site" checkbox should be your site address (without the http://). In the example it is oregonstate.edu/cws, which limits the search to the CWS site. If all you want is an OSU-wide search, erase this line to do a normal search.

Minimum requirements for this form

  • your site must be currently indexed by our search engine
  • form action must be action="http://search.oregonstate.edu/web/"
  • form method must be method="get"
  • a text input named "query"
  • a submit button

Central Web Services, Oregon State University, Corvallis, OR 97331 · 541-737-1189
Contact us with your comments, questions and feedback
Copyright © 2006 Oregon State University | Disclaimer