Search forms (templates)
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 form
To edit the default
simple.ftl file for a collection:
- Select the collection you wish to modify in the Manage Collection section of the Administration home page
- In the Customise tab click on the Design Results link.
- This will take you to the Edit form page (shown below), which allows you to edit the form directly.
To access other forms or create a new one:
- Select the collection you wish to modify in the Select Collection section of the Administration home page
- Click on the Administer tab
- Click on the Browse Collection Configuration Files link
- This will take you to the file-manager page (shown below)
This shows two sections:
Files that are currently live
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 form file (see Create button). The search link allows you to view what the form looks like when generated, and you can also download the forms for editing on your desktop.
Search form templates
simple.ftl template provides a powerful mechanism for enabling the following customisations:
- Inserting the value of any configuration file option, environment variable, query string parameter or general XML result element.
- Controlling the presentation format of search results.
- Putting arbitrary HTML above, below and between the variables and results.