Skip to content

Search templates

Introduction

Funnelback uses form templates to allow administrators to customise their search interface. It supports changes to the appearance of the search page, as well as advanced search and inclusion of metadata/XML fields in result summaries.

Editing the default template

To edit the default simple.ftl file for a collection:

  1. Select the collection you wish to modify in the manage collection section of the administration home page
  2. In the customise tab click on the design results link.
  3. This will take you to the edit form page (shown below), which allows you to edit the template directly.

Edit-simple-form.png

Managing forms

To access other forms or create a new one:

  1. Select the collection you wish to modify in the select collection section of the administration home page
  2. Click on the administer tab
  3. Click on the browse collection configuration files link
  4. This will take you to the file-manager page (shown below)

File-manager-live-preview.png

This shows two sections:

Live

Files that are currently live

Preview

Files that can be edited and previewed without affecting the live files. The "preview" files will need to be published to move into the "live" area.

From this page you can select an existing form to modify (e.g. simple.ftl), or create a new custom template file (see create button). The search link allows you to view what the template looks like when generated, and you can also download the templates for editing on your desktop.

Search templates

The simple.ftl template provides a powerful mechanism for enabling the following customisations:

  1. Inserting the value of any configuration file option, environment variable, query string parameter or general XML result element.
  2. Controlling the presentation format of search results.
  3. Putting arbitrary HTML above, below and between the variables and results.

Template not found screen

A default message is presented if the cached copy cannot be retrieved when attempting to access a cached copy of a search result. This can be fully customised, however the customisation is server-wide.

See: Template not found screen.

See also

top

Funnelback logo
v15.14.0