Template not found screen
Introduction
The template not found screen is displayed to users that attempt to access a template that does not exist (by supplying a form
parameter to a non-existent template.
By default a generic message is displayed to end users:
Search Error
We're sorry, the NAME_OF_TEMPLATE form does not exist, please try a different form (e.g. form=simple)
Customise the template not found screen screen
The template not found screen is generated using a Freemarker template.
To change the output:
-
Log in to the Funnelback server backend (e.g. via SSH or RDP)
-
Browse to
<FUNNELBACK INSTALL FOLDER>/web/templates/modernui
-
Copy
form-not-found.default.ftl
toform-not-found.ftl
. It is important to make a copy of this file as any upgrade of the Funnelback server will overwrite theform-not-found.default.ftl
. -
Edit
form-not-found.ftl
and save the file.
Changes should be reflected as soon as the file is saved.
Example: Add a header and footer the template not found screen.
Edit form-not-found.ftl
to add a header and footer:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="robots" content="noindex,nofollow" />
<title>Form not found</title>
<style type="text/css">
body {
font-family: Verdana;
text-align: center;
}
</style>
</head>
<body>
<header>
SITE HEADER CODE
</header>
<h1>Search Error</h1>
<p>We're sorry, the <code>${(question.form)!form!}</code> form does not exist, please try a different form (e.g. form=simple)</p>
<footer>
SITE HEADER CODE
</footer>
</body>
</html>