Webmail | Campus Compass | Events

Sunday, November 22, 2009 11:34 PM

Inside TuftsUniversity Relations

GO >
this site tufts.edu people
   

Setting Up a Site Search

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.

2. Next, make the following edit to this line of the code: Replace "www.tufts.edu/yourdirectory" with the URL of your site. NOTE, if your site is using a virtual domain (e.g., enews.tufts.edu), use your virtual domain here.

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:

 

Printer-friendly version

 

Contact the Web Team

Have a question about the building or maintaining a website at Tufts? Drop us a line and we'll point you in the right direction.

 

Tufts Home | Inside Tufts | Site Map | Contact University Relations
© 2009 Trustees of Tufts College. All rights reserved.

Tufts University