Desktop User Guides > 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.
Contents of templates
Templates define some or all of the following:
Page titles
Position and appearance of texts and controls (for example, responses lists): see Questions, responses, and error messages
Error messages for questions in loops and blocks
Banners (information texts)
Progress bars
Insertion points for images and other external references: see Sub-templates
Navigation buttons
Fixed text, such as the webmaster’s email address
HTML page generation settings.
Locations 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. (This does not affect UNICOM Intelligence Interviewer - Server.) Global templates can be used by any project and include any templates that your create to implement your standards for interview page design and layout.
See also
Template types
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