MobileDocViewers (Mobile Document Viewer)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

Specifies the document-viewing page for one or more types of documents.

MobileDocViewers (Mobile Document Viewer)
<MobileDocViewers>
  <MobileDocViewer>
  </ MobileDocViewer>
</MobileDocViewers >

Complex

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child elements

Element

Description

MobileDocViewer

Configures redirection for a specific type of document.

Parent elements

None

The MobileDocViewers element persists in a file named mdocview_*.xml, where the asterisk (*) is some string of valid file name characters. We recommend using your company name or some other string that is not likely to duplicate the name that is used by other document viewer providers. The page is deployed to %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\Config on all front-end web servers.

The following example shows this element in use.


<MobileDocViewers>
  <MobileDocViewer Name="docx" FilePath="/_layouts/mobile/mWord.aspx" FeatureId="8DFAF93D-E23C-4471-9347-07368668DDAF" QueryId="doc" AppendSourceUrl="true" >
    <BrowserCondition Id="overrideMobileDocViewerRedirection" Value="true">
      <Override FilePath="/_layouts/MobileDocHandler.ashx" AppendSourceUrl="false" />
    </BrowserCondition>
  </MobileDocViewer>
</MobileDocViewers>

Show: