Previous Page: How Templates Work  Next Page: Error and Response Message Templates

Exploring the Default Search and Print Templates

NetWare Web Search Server includes several default templates used to create search forms and to format, display, and print search results for users.

You can use the templates as they are, or you can modify them to look and feel how you want them to. You can also create as many additional templates as you need, or replace the default templates with your own templates.

NetWare Web Search includes the five template categories:

TOOL TIPThe templates are stored on your SYS volume at NSEARCH/TEMPLATES.


Search Page Templates

NetWare Web Search includes two search page templates that are used to generate a search page. Refer to Table 1 for information about each search page template.


Table 1. List of Default Search Page Templates

Template Name Purpose

SearchTemplate.html

Detects the language and country of the client browser and returns a dynamic search page in the matching country and language.

This template also lets users select and search specific indexes and is the default search template used by NetWare Web Search Server.

SearchTemplate.Simple

Same as SearchTemplate.html, except that this template contains no dynamic collection variables and can be used when you don't want to provide users with a list of all collections.


Search Result Templates

NetWare Web Search includes several ready-made result templates. Refer to Table 2 for information about each result list template.


Table 2. List of Default Search Result Templates

Template Name Purpose

ResultListTemplate.html

Formats and organizes search results and offers additional sorting functions to the user.

ResultListNoHitsTemplate.html

Used to indicate when no hits were found during a search and offers users a chance to refine their search.

ResultListTerseTemplate.html

Similar to ResultListTemplate but returns less information, such as headings only.

ResultListVerboseTemplate.html

Similar to ResultListTemplate, but returns more infromation, as as file date, time, language, etc. Additional sort options are also provided.


Print Result Templates

From the search results page, users have the option of printing all files matching their search, or only those files displayed on the current search results page. When one of these options is chosen, the print result template is displayed. Refer to Table 3 for information about the print result templates.


Table 3. List of Default Print Result Templates

Template Name Purpose

PrintResultTemplate.html

Formats and organizes search results and offers additional sorting functions to the user in a way that is optimized for printing.

PrintResultNoHitsTemplate.html

Used to indicate when no hits were found during a search and offers users a chance to refine their search.

The print result template formats and organizes search results, optimized for printing, including a complete table of contents. The table of contents includes hypertext links for use online.



  Previous Page: How Templates Work  Next Page: Error and Response Message Templates