The web template is used to provide a suitable look and feel for the search engine, to integrate with the rest of the site.
Click on Web template on the Package configuration page. The Web template page allows you to create and edit a web template for your search environment, or to retrieve an exiting web template from a URL.
The web template determines how your search environment appears to your users, and ensures that your site’s look and feel is replicated on the search page.
The search interface consists of two main parts:
- The web template, which is edited and maintained here.
- The page content, which, depending on the context, is the search form and submit button, the list of search results, or any other custom elements. The page content is inserted in the web template by replacing the
[searchbody] tag; which means that this tag is required for the search to work correctly.
Here is a summary of the options:
- Retrieve from URL: Tick this box to activate retrieval of a web template from a URL. This allows you to create and maintain a template in your favourite html editor, upload it to any URL, and retrieve it for use in your search environment.
- Retrieve every: Enter a retrieval interval in minutes. If the box Retrieve from URL above is ticked, SearchImprove can be set to automatically retrieve the template at designated intervals. This ensures that any changes made to the template are reflected on the search page, even if it is not uploaded manually.
- URL: This is the Uniform Resource Locator from where the template is retrieved.
- Template: This is the complete source code of the web template. This field allows you to make instant changes to the web template from within the SiteImprove interface. This field may also be used instead of retrieving the template from an external location.
- Preview: This generates an html page on the basis of the source code in the Template field, and displays it in a new browser window. To debug the template in alternate browsers, right-click Preview, select Copy shortcut, and paste the URL address in the alternate browser.
Click the Update button to save your changes. Click the Retrieve now button to manually retrieve the web template from the URL entered in the URL field above.