Template Setup
|
|
||
| 1. | Each web page that EPWeb generates is controlled by a corresponding template (HTML) file. This HTML template lets you control the placement and appearance of all objects available to the page, such as buttons, links, data entry fields, data display fields, etc. See the section Control Tags and Online Module Syntax for Manipulating Fields later in this document. |
| 2. | The placement and appearance of each object works just like a “mail merge” and uses control tags in the form of {%<Control Name>%} . The position on the page of each object is determined by where the control tag is placed in the HTML formatted template. |
| 3. | The main template file “Template.html” sets and controls the overall appearance of all the other pages, while the individual page template files are merged into this main template at a position determined by a special {%PageContent%} tag. |

| 4. | The Template.html file allows you to make global changes to colors and general layout. All other pages contain information specific to just that page. |
| 5. | When EPWeb creates a requested page, it first loads up the “Template.html” page. The “Template.html” page contains the PageContent control tag, “{%PageContent%}”, which shows EPWeb where the requested page should be placed on the page. If the template page does not contain a PageContent control, none of the requested pages would be displayed. |
| 6. | After the template page is loaded, it merges the requested page’s HTML template into the position set by the “{%PageContent%}” tag. |
| 7. | Templates are set up and modified in the Template folders. The Templates folder contains sub-folders for each template set. When accessing EPWeb from a browser you can specify whether you want to use a template set other than the standard one. |

| 8. | There is also a Files folder that contains files (normally images) that the templates use. The Files folder contains sub-folders for each template set, just like the templates folder. If you create a new Template folder, you will also need to create a new Files folder of the same name. |

| 9. | There is a Reference folder inside the Templates folder that contains a reference for creating additional template folders. Whenever an update is installed for EPWeb, the Reference folder will be overwritten. Changes you have made to the other folders will not be overwritten. The Standard folder will be updated with any new template files, but it will not overwrite any existing ones. Any other Template folders will not be updated at all. |
| 10. | EPWeb determines which template set to use in the following order: |
| a. | the template stored in the sub-folder specified in the “Template” parameter of the URL, or |
| b. | if not specified, the template defined in the “Standard” sub-folder. |