Search and you shall find. A localized search engine can be a valuable tool on any site – it gives your users a quick option for locating content on your site without having to search the entire Tufts domain.
Setting up a localized search is pretty easy: we’ll show you how to have one up and running in a matter of minutes. All you need is a site ending in tufts.edu, a basic HTML editing tool and our standard code.
1. First, open a blank document in your HTML editor. Copy the standard search code and paste it into the blank document.
Note: Do not add a trailing slash after the URL. If you add a trailing slash, Google will limit your search results to just the files in the root of your site. If you have files in subdirectories of your site, the search engine will not find them if there's a trailing slash to the URL of the code.
3. Additional (optional) edits you can and cannot make:
- You can change the size of the search input box. It's currently set to "40."
- You can add an image for the search button, but do not change the name="btnG" parameter.
- You can use a table to control the layout of the form, but do not break up the form into separate tables. The code will not work if it is in separate tables.
4. Upload your form code and test it out. Happy searching!
Have a question about implementing the search code? Ask a fellow webmaster through the TuftsWebTalk e-list.
| More Tips and Tools: |