Web Administration: Web Resources
Tutorials
Creating a Custom Search Page
To add a search form like the one below to your Web site, insert the following code in your page in the desired location and then replace the URL in red with the top-level domain name of your unit and the name in red with the name of your Web site.
<form action="http://search.ufl.edu/search" method="get">
<input type="hidden" name="site" value="www.webadmin.ufl.edu" />
<label for="source">
<select id="source" name="source">
<option value="web" selected="selected">Web Admin Site</option>
<option value="allweb">UF Web with Google</option>
<option value="phonebook">UF Phonebook</option>
</select>
</label>
<br />
<label for="searchbox">
<input name="query" id="searchbox" type="text" size="20" value="Search" alt="Search" onfocus="select();" />
</label>
<input type="submit" name="Submit" value="Go" />
</form>
Notes:
- The UF search engine also supports the restriction of search results to specified subdirectories. For example, to search the Web Administration tutorials, the URL in red could be given as www.webadmin.ufl.edu/tutorials.
- No schema is necessary at the beginning of the URL in red. Do not add
http://, for example. - If you don't wish to use the pulldown menu of search options, remove everything from
<label for="source">to the corresponding</label>and change the form action tohttp://search.ufl.edu/web(example). - Sites are automatically indexed by the UF search engine once a week. In order for the UF search engine to find new sites, at least one link to the new site must be present on an existing site.