'Quick Search' form for department websites
Page contents > 'Quick Search' example | FrontPage 2000 users
This page details how to insert a search form into your department web site. There are two types, with working examples below. The first searches all of your department web pages; the second on another page provides a more advanced form, enabling the user to narrow their search.
'Quick Search' example
FrontPage 2000 users
- To insert this search form into one of your web pages, first open FrontPage and create a search page.
- Next, copy the HTML at the bottom of this page.
- In FrontPage, position the cursor at the point you want the form to appear on you page. Select from the main toolbar 'Edit', 'Paste Special'.
- When the 'Paste Special' window appears, select the last option 'Treat as HTML' - this means rather than simply pasting the text the copied, FrontPage will insert the copied text in the HTML of your search page.
- All that remains now is to configure the form to point to your departmental pages. You should switch to the HTML view by clicking the 'HTML' tab at the bottom-left of the FrontPage window and locate the tag within the form which reads:
<input type="hidden" name="restrict" value="http://www.lse.ac.uk/collections/your-department-here/">
The only change which needs making is to edit 'your-department' to read the appropriate value. If you are in doubt, simply open your browser and go to your department homepage - for example, the Anthropology department needs to change the value to read 'anthropology'.
IT IS IMPORTANT THAT THE URL OF YOUR DEPARTMENT
IS EXACTLY AS APPEARS ON THE WEB SERVER AS THE
SEARCH ENGINE IS CASE-SENSITIVE.
THE BEST ADVICE IS TO COPY THE URL FROM THE BROWSER.
- The line of text which reads '(all Your Departmental Web Pages)' is just plain text and you can edit this as you would any piece of text in the Editor.
- To check that your new search page works, preview the page in the browser and enter a search word and click on search. You should find that only matches to web pages for your particular site appear.
A more 'Advanced Search' form for department websites is also available and uses the same copy-and-paste method to create the search form.
COPY THE HTML BENEATH FOR THE QUICK SEARCH FORM
<table border="1" width="415" cellspacing="0" cellpadding="5" bgcolor="#FFFFCC">
<tr>
<td width="100%"><form method="POST" action="http://www.lse.ac.uk/cgi-bin/htsearch">
<input type="hidden" name="method" value="or"><input type="hidden" name="format"
value="builtin-long"><input type="hidden" name="sort" value="score"><input type="hidden"
name="restrict" value="http://www.lse.ac.uk/collections/your-department-here/"><input
type="hidden" name="config" value="htdig"><input type="hidden" name="exclude" value="exclude"><p><font
size="4">Quick Search:<br>
</font>(all Your Departmental Web Pages)</p>
<p><input type="text" size="33" name="words"> <input type="submit"
value="Search"><br>
</p>
</form>
</td>
</tr>
</table>
^ Back to top