Secure Mobile Access 12.5 Administration Guide

Table of Contents

Customizing WorkPlace Templates

The appearance of WorkPlace is controlled using templates. WorkPlace uses the same set of template files regardless of device type, so you do not need to create separate versions for desktop, laptop, or mobile devices. To customize a template, you create an HTML file using any standard Web design tool or text editor.

If your customization includes graphics, upload them to this folder:

/usr/local/extranet/htdocs/__extraweb__/images

If an images directory is not already present, you can create it by typing the following command:

mkdir -p /usr/local/extranet/htdocs/__extraweb__/images

The file names you must use are described in How Template Files are Matched.

To customize the WorkPlace templates

  1. Create an HTML file containing the desired layout, and add the WorkPlace-specific tags:

    • Within the BODY tag, add an HTML COMMENT tag containing the word EXTRAWEB:

      <!-- EXTRAWEB -->

      This tag is required; it determines where to place content dynamically generated by the appliance. Without it, the user trying to log in to WorkPlace will be repeatedly sent back to the beginning of the authentication process.

    • Add a reference to the external JavaScript file:

      <script language="javascript"

      src="/__extraweb__/template.js"></script>

    • To have your templates display any WorkPlace content (including the .css file or the custom logo you configured in AMC), modify your HTML code to reference the /__extraweb__/images/ path. For example:

      <img src="/__extraweb__/images/mylogo.gif">

  2. Save the file with the appropriate file name using a .tmpl file extension.