Developer Documentation Library > Interviewer - Server > Configuration and customization > Web configuration files > Settings for web-deployed UNICOM Intelligence Author
 
Settings for web-deployed UNICOM Intelligence Author
Web-deployed UNICOM Intelligence Author reads its settings from the Web.config file that is in the following folder:
C:\inetpub\wwwroot\SPSSMR\AuthoringWebService
Files that UNICOM Intelligence Author checks out
When UNICOM Intelligence Author starts, it checks out the following files:
the project's .mdd file, if there is one; it will update this file with any changes that the user makes
any image and template files that are in the project folder.
If you want UNICOM Intelligence Author to check out any other files, add their filename extensions to the CheckoutExtensionList key. Separate multiple filename extensions in the list by using semicolons. The default value for the CheckoutExtensionList key is:
<appSettings>
  <add key="CheckoutExtensionList" value="*.htm;*.html;*.xml;*.gif;*.png;*.jpg;*.jpeg;*.mov;" />
</appSettings>
If the CheckoutExtensionList key is not specified or its value is empty, UNICOM Intelligence Author checks out all file types.
Files that UNICOM Intelligence Author downloads
UNICOM Intelligence Author also downloads any files that required for activating the project, or previewing the interview. These are usually the following files:
the project's .mdd file
the project .mqd file for quota
files to support database questions
project activation XML
templates and sub-templates.
Files that referenced by using mrRef or mrSharedRef are accessed directly from FMRoot using the ImageCache.
If you want UNICOM Intelligence Author to download any other files, add their filename extensions to the list for the DownloadExtensionList key. Separate multiple filename extensions in the list by using semicolons. For example:
<appSettings>
  <add key="DownloadExtensionList" value="*.htm;*.html;*.xml; ;*.gif;*.png;*.jpg;*.jpeg;*.css;*.js;*.mqd;*.xsu;*.mdd;*.docx;*.doc;*.bmp;*.json;*.woff;*.svg;*.xls;*.xlsx;*.xlsm;*.xlsb;*.mdb;*.accdb;*.xsl;*.xslt;*.ico" />
</appSettings>
If the DownloadExtensionList key is not specified or its value is empty, UNICOM Intelligence Author downloads all file types.
Default template names
When you create a questionnaire, you use a template to specify how questions will be formatted during the interview. You can set a default template for a project by using the Options dialog.
UNICOM Intelligence Author validates the template names when the user you saves changes to the Options dialog and when it creates a new questionnaire file by using the default templates.
You can specify the formats for valid template file and path names by using the DefaultTemplateMask keys in the Web.config file. For example:
<appSettings>
  <add key="DefaultTemplateMask1" value="^$" />
  <add key="DefaultTemplateMask2" value="^([^\./:*?<>"|\\][^/:*?<>"|\\]*)((\/|\\){1}[^\./:*?<>"|\\][^/:*?<>"|\\]*)*$" />
  <add key="DefaultTemplateMask3" value="^(<SharedTemplatesFolder>|<RolesFolder>) ((\/|\\){1}[^\./:*?<>"|\\][^/:*?<>"|\\]*)*$" />
</appSettings>
In the example:
value="^$"
Accepts an empty string as the template name: this means that you can create a question without a template attached. When the question appears during the interview, it uses the template that was most recently loaded.
value="^([^\./:*?<>"|\\][^/:*?<>"|\\]*) ((\/|\\){1}[^\./:*?<>"|\\][^/:*?<>"|\\]*)*$"
Accepts a file name, or a pathname that does not start with .. (parent folder), . (current folder), // or \\.
value="^(<SharedTemplatesFolder>|<RolesFolder>)((\/|\\){1}[^\./:*?<>"|\\][^/:*?<>"|\\]*)*$"
Accepts files that are in the SharedTemplates folder, the Roles folders, or subfolders of those folders. The pathnames must not contain .. (parent folder), . (current folder), // or \\.
Text replacement in stylesheets and template files
When UNICOM Intelligence Author copies files from the shared folder to the user's working folder for a project, it replaces some of the text that is in them: that is, references to the image cache that are in stylesheets and template files. You can extend the feature to replace other text as well.
Stylesheet and template files in the shared templates folder (that is, FMRoot\Shared\Templates) use the /%image cache url%/ placeholder in references to image files. When a stylesheet or template file is copied into a project's folder, this placeholder needs to be replaced with the proper URL for the image cache. The file types, the placeholder text, and the replacement text are defined by using keys in UNICOM Intelligence Author’s Web.config file. The default settings are as follows:
<appSettings>
  <add key="ReplaceText_MimeTypes" value="text/css" />
  <add key="ReplaceTextEncode_MimeTypes" value="text/html" />
  <add key="ReplaceText_FindValue" value="/%image cache url%/" />
  <add key="ReplaceText_NewValue" value="/SPSSMR/ImageCache/ImageCache.aspx?project={project}&file=" />
</appSettings>
Keys
ReplaceText_MimeTypes
A list of mime types in which UNICOM Intelligence Author replaces text. Separate multiple mime types by using semicolons.
The default value is text/css, which means that UNICOM Intelligence Author replaces text in files that have a .css filename extension.
ReplaceTextEncode_MimeTypes
A list of mime types in which UNICOM Intelligence Author replaces text; the replacement text is HTML‑encoded. Separate multiple mime types by using semicolons.
The default value is text/html, which means that UNICOM Intelligence Author replaces text in files that have a .html filename extension.
ReplaceText_FindValue
The text to be replaced.
The default value is:
/%image cache url%/
ReplaceText_NewValue
The replacement text.
The default value is:
/SPSSMR/ImageCache/ImageCache.aspx?project={project}&file=
UNICOM Intelligence Author replaces project with the name of the current project.
See also
Web configuration files