By default, the Deployment Wizard generates HTML using a basic template installed with the Host On-Demand product. If you wish to modify the appearance of your Web pages, you can provide an alternate template to be used by the Deployment Wizard or modify the default template.
The default template that the Deployment Wizard uses is called Wizard.html. If the Deployment Wizard was installed as part of the Host On-Demand installation, this file resides in the Host On-Demand publish directory C:\Program Files\IBM\HostOnDemand\HOD. If you installed the Deployment Wizard separately, the default location of thie file is C:\Program Files\IBM\Deployment Wizard. It contains fundamental tags for HTML formatting, a few markers for Host On-Demand use, and some appearance-related information, such as banner and background specifications.
As long as the HTML formatting and the Host On-Demand markers in the template are not modified, the template can be customized in any way. For example, it can be updated to include a different banner, background, new images, new text, forms, or JavaScript. These new features will then be added to any HTML code that the Deployment Wizard generates with that template.
You can either modify the default Wizard.html template and have the changes apply to each Deployment Wizard page created or edited, or you can create another template and selectively apply it to different Deployment Wizard pages.
Below is a set of specific steps to create and apply custom templates:
The tags STARTAPPLETPARMS and ENDAPPLETPARMS allow HTML parameters to be added to the template. All of the definitions between these two tags will be placed into the Host On-Demand applet section of the generated HTML.
A sample of the default Wizard.html template is shown below.
Sample default Wizard.html template:
<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <meta HTTP-EQUIV="Content-Type" content="text/html; charset=UTF-8"> <!-- SUMMARY --> </HEAD> <BODY BACKGROUND="hodbkgnd.gif"> <CENTER> <IMG src="hodlogo.gif" ALT="hodlogo.gif"> <P> <!-- STARTAPPLETPARMS --> <!-- ENDAPPLETPARMS --> <!-- SCRIPTS --> <!-- APPLET --> </CENTER> </BODY> </HTML>
Because the Host On-Demand cached client support uses a window onLoad event handler, you cannot use an onLoad event handler in the </BODY> tag. When both are present, it causes problems in the browsers. For download clients, the window onLoad event handler is not used; therefore, an onLoad event handler in the </BODY> tag can be used. Another window onLoad event handler can be used in all cases. |
If you modified the file Wizard.html, be sure that the file name is still named Wizard.html. This file will be applied to all Deployment Wizard pages created or edited (without having to specify a template).
If you want to apply a different custom template to a specific page that the Deployment Wizard generates, complete the following steps:
If you update the template after creating the HTML file with the Deployment Wizard, you will have to regenerate the HTML code in order to pick up the changed template. This template is only used when you generate the HTML code. To regenerate the file, open it in the Deployment Wizard, go to the last window, and click Create File(s).