Template not found screen

This feature is not available to users of the Squiz Experience Cloud version of Funnelback.

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:

  1. Log in to the Funnelback server backend (e.g. via SSH or RDP)

  2. Browse to <FUNNELBACK INSTALL FOLDER>/web/templates/modernui

  3. Copy form-not-found.default.ftl to form-not-found.ftl. It is important to make a copy of this file as any upgrade of the Funnelback server will overwrite the form-not-found.default.ftl.

  4. Edit form-not-found.ftl and save the file.

Changes should be reflected as soon as the file is saved.

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>

See also

© 2015- Squiz Pty Ltd