Creating preview images and template descriptionsAdded by IBM on January 17, 2014 | Version 1 (Original)
|To easily identify custom templates in the Designer, you can add a preview image of the template. Once the image is saved, you can add a template description.
To add a new preview image:
Parent topic: Identifying your custom template
- Use a screen capturing tool to take a snapshot of your form.
- Size the image to 160 x 240 pixels using a photo-editing program.
The Designer will automatically scale any image to this size, but you will get better image quality if you resize the image yourself before adding it to the Designer.
- Save the image so that the filename is the same as your template, and use one of the following formats: jpg/jpeg, gif, bmp, png, wbmp.
For example, if your template is named governmentTemplate.xfd, save the image as governmentTemplate.jpg.
- Copy the image to the same template folder that contains the form it represents.
Once you have added the image file, the Designer will automatically display this image when the user selects the corresponding template.
- To add a description to your template, create a separate file called form_file_name.properties.
For example, governmentTemplate.properties
The file includes two settings:
- TemplateTitle — The title of the template form. You should limit this to a few words.
- TemplateDescription — A text description of the form. This can be several lines long.
The properties file is written as a standard text file using tag-value pairs, as shown:
TemplateTitle=your template name
TemplateDescription=Use this template for all government forms.
It includes a toolbar and page navigation buttons.
- Once you have created the properties file, copy it to the same template folder that contains the form it describes. The Designer will access this file automatically, and will display the description of the form when the user selects that template.