Previous Page: Customizing Search Result Templates  Next Page: Customizing Error and Response Message Templates

Customizing Print Result Templates

NetWare Web Search Server includes two default print result templates: the default print result template and a "no hits" template. Print result templates are used to organize and format search results for printing, and to provide feedback to a user when no hits are found. For more information about the default print result templates, see Understanding Templates.

You can customize the design and functionality of the default print result template in the same way you customize the search result template by

If you are familiar with HTML, you can quickly modify the design of the default print result template. For example, you can change the background color, link colors, or add new graphics.

To modify the functionality of the default print results template, you add or remove print result variables. Variables are placed in the template where you want search results to be displayed.

For example, if you wanted to remove the table of contents from the default print results template, you would remove, or comment out, the following HTML code in the PRINTRESULTLIST.HTML template, which would include the $$BeginTOCList variable:

<CENTER><H2>Table of Contents</H2></CENTER><p><!-- TABLE OF CONTENTS -->$$BeginTOCList[<BIG><B>$$Product</B></BIG><DL>]<DT><A HREF="#$$Bookmark"><BIG>$$Title</BIG></A><SPACER TYPE=HORIZONTAL SIZE=20><I><SMALL>[$$URL]</SMALL></I>$$EndTOCList[</DL>]

You could either save your changes in the default print result list template, or you could save it using a new name and thereby create an alternative template for users who don't want a table of contents in the print results. To be effective, you would then have to add a hypertext link in the search result template that would link to your new template.

TOOL TIPDefault print result templates can be found at SYS:\NSEARCH\TEMPLATES. For a complete list of print result variables that you can use to customize default search result templates or to create new ones, see Table 6.



  Previous Page: Customizing Search Result Templates  Next Page: Customizing Error and Response Message Templates