Interviewer - Server > Architecture > HTML players > Layout templates
 
Layout templates
Layout templates determine the appearance of interview pages, including the relative positions of question, banner, error texts, and navigation buttons. The position of items on the page is defined in the template using insertion tags. For example, an mrData insertion tag marks the position of question, response, or error text, depending on the attributes included in the definition, while an mrNavBar tag marks the position of the standard, three-button navigation bar. For more information about creating template files and using insertion tags, see Templates.
The layout templates installed with UNICOM Intelligence Interviewer are supplied as well-formed XML. If no template is specified in the Player XML, a default template that exists as an XML resource in the HTML Player component is used. An error is logged if a supplied template is not well-formed XML, and warnings are logged whenever a layout template does not include all of the necessary insertion tags.
Unused insertion tags are removed from the rendered HTML. This typically happens when a template defines the position of an error message and there is no error message to display on the current page.
If an insertion tag exists more than once, the player XML element is inserted at each occurrence of the tag.
The HTML players also recognize sub-templates, localized templates, and grid templates, which are similar in content to layout templates. See Template types for more information.
See
Where do applications look for templates?
Localizing layout templates
Style class names added to the page
See also
HTML players