Help Search SiteMap Directories MyMHC Home Alumnae Academics Admission Athletics Campus Life Offices & Services Library & Technology News & Events About the College Navigation Bar
MHC Home Using the Document Interface

The .SEARCHFORM Command

Syntax: .SEARCHFORM [Folder=] [Title=] [Size=]

This command creates the code necessary to have a search form which uses the college's search engine to look for terms in all or part of the MHC site.

All parameters of the .SEARCHFORM command are optional:

Folder

Defines the sub-folder of the site to search. The user's search terms are sought out within documents in this folder, and any sub-folders. This value should always start with a forward slash (/). For example, the value /athletics/varsity will only produce matches within the Varsity Sports section of the Athletics area of the site.

If this value is omitted, the entire MHC site is searched.

Title

This is the text which appears just prior to the text box where the user types a query. If this value is omitted, the title "Search MHC" is used.

Size

By default, the text box where the user types a query is 9 characters wide. It can be changed with this parameter.

It is important to note that the user may have her browser set to use a large point size for text entry fields, and so it is best to keep this number small, especially if your page's design would be adversely affected by a text field that pushes table cells too far to the right.


Example

This command produces a working search form for the DI documentation you are reading now:

<!--.searchform folder="/help/creating-pages/DI" title="Search the DI docs"-->

 

----------------------------------------

Home | MyMHC | Web Email | Directories | SiteMap | Search | Help

Admission | Academics | Campus Life | Athletics
Library & Technology | About the College | Alumnae | News & Events | Offices & Services

Copyright © 2001 Mount Holyoke College. This page created by the OIS Operations Group and maintained by Webmaster. Last modified on December 12, 2001.