Editing Document Templates
From SchemeServe Wiki
[edit] Introduction
The Document Template system is at the heart of the document system. With it, very complicated documentation can be automatically generated which would otherwise take a person a great amount of time to build manually with great risk of human error.
The document templates are found in the Admin section of the application, so you need to be an administrator to see them.
There are 2 levels of Document Template.
Templates applicable to All Schemes and Templates applicable to a single scheme.
[edit] Creating a new Document Template
To create a new Document Template, click New Document in the relevant Scheme or the All Schemes Section.
Read the on screen instructions and then provide a name for your new document template.
You'll then be presented with the Template Designer. In here you can create your document in exactly the way you would like it to appear. You can format text, you can add Dynamic Fields including Editable sections (Dynamic Fields control:essay, control:paragraph, control:sentence)
To remove a dynamic field once it's been placed, just delete it as if it was any normal text in your document.
Once you are happy with your template, press Save.
[edit] Editing Existing Document Templates
To edit an existing document template's definition, press the Configure button next to the template in question. You can then modify various Template parameters and effects on cases when the letters are produced. To modify the actual document template, press View Template and you'll be presented once more with the Template Designer. Save your changes once you've finished.
If you've decided to discard your changes, press the Back to List button and your changes will be ignored.
[edit] Inserting a new image into one of your Document Templates
- Log-in to SchemeServe.
- Go to Admin > Documents
- Browse to the Document Template you wish to edit.
- Click the 'Edit' button (looks like a little pen).
- Position the cursor in the document where you'd like to insert the image.
- Click the 'Insert/Edit Image' button (yellow background with two mountains and a sun).
- Click the 'Upload' tab.
- Click the 'Choose File' button to select an image from your hard drive.
- Click 'Send it to the Server', then when it's done uploading click 'OK'.
- Click 'OK' again to close the 'Image Properties' box.
- Your image has been inserted into the selected Document Template.
- Make sure you click 'Save' at the end to save your Document Template.
[edit] Inserting an existing (i.e. previously uploaded) image into one of your Document Templates:
- Log-in to SchemeServe.
- Go to Admin > Documents
- Browse to the Document Template you wish to edit.
- Click the 'Edit' button (looks like a little pen).
- Click the 'Insert/Edit Image' button (yellow background with two mountains and a sun).
- Click 'Browse Server', then click on the folder you'd like to browse.
- Click the image you wish to use.
- Click OK.
- Your image has been inserted into the selected Document Template.
- Make sure you click 'Save' at the end to save your Document Template.
[edit] Adding a header and footer for all documents on a particular Scheme:
- Go to "Admin" > "Schemes".
- Choose the correct Scheme and click the Images tab.
The header and footer get scaled by 50% to ensure high quality print versions.
Once you have an image that is twice as large as you want it on the documents all you need to do is upload it.
Just click "Browse", find the image on your PC and click "Open".
When you click "Save Changes" the image will be uploaded to SchemeServe and will display on any Document Templates that have the "Standard Header" or "Standard Footer" ticked.
[edit] Changing the header and footer for all documents on a particular Scheme:
- Go to Admin > Schemes.
- Choose the correct Scheme and click the Images tab.
- Click the image next to "Document Header" or "Document Footer".
- That'll open it full size and you can right click and "save image as" to download it to your PC.
- Fire up your favourite image editor, make your changes and just click the "Browse" and "Save Changes".
The header image is positioned top left so to get your header appear top right (or center):
- Make your image 1200px wide (white background).
- Use a selection tool to move your logo to where you would like to appear on the page.
- Click "Browse", find your updated image and "Save Changes".
The intricacies of using an image editor are outside the scope of this article.
You should be able to find many resources by typing the name or the editor you have into your favourite search engine.
[edit] Automatically generating documents on status changes
Often you'll want certain documents to be generated/presented to the user automatically at certain points in the Case lifecycle. This can be achieved using the "Auto Generation" section.
- Select the type of Case this should apply to, "First Premium" are new Cases, "Adjustments" are adjusted existing Cases, "Renewals" are for Renewed Cases and "Any" will apply to all three.
- Select the status you'd like to result in the document being generated
Now, this document will be regenerated when the case in question is of the Type you selected, (First Premium, Adjustment, Renewal) and it's status changes to the Status you selected.

