Interviewer - Server > Configuration and customization > Supporting shared content
 
Supporting shared content
The <mrSharedRef> tag can be used in templates to reference external files that are shared across projects, such as Javascript frameworks used to support custom controls, or large media files.
The <mrSharedRef> tag references files in FMRoot\Shared\Content using the global image location as set in the ImageLocation key in the mrIWeb Web.config file (see Web service configuration). <mrSharedRef> tag usage may require additional setup or configuration depending on your cluster.
The shared template location is defined by the TemplateLocation key in the mrIWeb Web.config file. When a relative path such as "Templates" is defined, the template location is prefixed by the ModuleLocation (the directory that mrIWeb.dll is in). For example: **\mrIWeb\Templates\;. When an ImageCacheURL, or an absolute path such as C:\Templates, is defined in the TemplateLocation key, the defined value is used as the template location. The default TemplateLocation value is:
http://localhost/SPSSMR/ImageCache/ImageCache.aspx?File=
<add key="TemplateLocation" value="http://localhost/SPSSMR/ImageCache/ImageCache.aspx?File=">
There are four options for configuring interviewer support for <mrSharedRef> (the default installation uses the second option):
1 Copy the shared content to each web tier instance. For example, copy the files in FMRoot\Shared\Content\ to wwwroot\mrIWeb**\Images.
2 In Microsoft Internet Information Services Manager, configure the Images virtual directory ([Server Name] > Web Sites > mrIWeb > Images) to reference FMRoot\Shared\Content\ (right-click Images and select Properties). In the Images Properties dialog's Virtual Directory tab, select A share located on another computer, and then set Network directoryto:
\\ServerName\SPSSMR_FMRoot\Shared\Content
3 In Microsoft Internet Information Services Manager, configure the Images virtual directory ([Server Name] > Web Sites > mrIWeb > Images) to redirect to the image cache URL (right-click Images and select Properties). In the A redirection to a URL field, should resemble:
http://ServerName/SPSSMR/ImageCache.aspx?File=
where ServerName is the UNICOM Intelligence Interviewer.
4 Configure the ImageLocation setting in the mrIWeb Web.Config file. When not set, ImageLocation default to the virtual directory mrIWeb\Images. You can redirect to another location by setting ImageLocation as:
<add key="ImageLocation" value=" http://clientsharedcontentserver/resources"/>
This redirect may add an extra server round-trip, resulting in performance implications.
 
See also
Configuration and customization