User Guide

Understanding Templates 177
Getting Results with Novell Web Services
103-000133-001
August 29, 2001
Novell Confidential
Manual 99a38 July 17, 2001
16 Understanding Templates
NetWare
®
Web Search Server utilizes templates to generate search forms and
search and print results as well as user feedback such as error or response
messages.
A template is an HTML document containing one or more Web Search Server
variables. Variables are used to produce dynamic results when a user performs
a search on the search site you have defined.
Templates can be shared across search sites or each search site can point to its
own set of templates.
This chapter describes how templates work and discusses the default NetWare
Web Search Server templates that are included. To learn how to customize the
default templates, see Chapter 17, “Customizing Your Search Solutions,” on
page 185, and Chapter 18, “Working with Template Variables and Search
Parameters,” on page 191.
How Templates Work
As defined above, a template is an HTML document containing one or more
Web Search Server variables. When users search your search site, they use a
Web browser to access the search form template. NetWare Web Search Server
includes a search form template. See Figure 7, “The NetWare Web Search
Form As It Appears in a Web Browser,” on page 178.
The Search form template, SearchTemplate.html, is stored (by default) on
volume:\searchroot\TEMPLATES. This path might be different if you chose
to install Web Search in another directory.
For more information about customizing templates, see “Customizing Your
Web Search Solution” on page 136.