Professional > Interview scripting > Writing interview scripts > Page layout facilities > Templates
 
Templates
Templates control the layout of the interview pages separate from the page content, which means that you can use a standard layout for all your interview projects just by applying the same template or templates to each project. You can use any number of templates in a project, switching between them according to the layout required for a particular page.
The interviewing program also supports cascading style sheets. These allow you to define global formatting characteristics that apply to all templates. For example, you can always have dark blue, 12-point question text regardless of how or where the question text is displayed by your templates.
What can I define in a template?
Templates define some or all of the following:
Page titles
Position and appearance of texts and controls (responses lists, for example) (see Questions, responses, and error messages) on the page.
Position in which Error messages for questions in loops and blocks are displayed and their appearance.
Position and appearance of Banners (information texts).
Position, orientation, and type of Progress bars.
Insertion points for images and other external references (see Sub-templates).
Navigation buttons that are to be displayed and their positions on the page.
Any fixed text, such as the Webmaster’s email address.
HTML page generation settings.
Where do applications look for templates?
Applications look for templates in two locations, first in the project folder and then in the global templates folder.
Project templates
Exist in the project directory and apply only to that project. You use project-specific templates either for special projects that have a different overall layout or for particular questions in the questionnaire that require a nonstandard layout. When you activate a project, the activation process copies any project-specific templates that it finds in the project’s source directory into the Shared and Master folders in FMRoot.
Global templates
Held in the main Projects directory, which is usually [INSTALL_FOLDER]\IBM\SPSS\DataCollection\7\Interviewer\ Server\Projects for UNICOM Intelligence Interviewer - Server. If you are building and testing scripts using UNICOM Intelligence Professional, you can set the location of the global templates folder for UNICOM Intelligence Professional using Tools > Options. (Note that this does not affect UNICOM Intelligence Interviewer - Server.) Global templates can be used by any project and will include any templates that your company creates to implement its current standards for interview page design and layout.
See also
Template types
The default template
Naming templates in the script
Writing templates
Grid templates
<meta> and <!doctype> tags in templates
Cascading style sheets
Editing the page's form definition
Using tables to simplify alignment specifications