BrowserCondition (Mobile Document Viewer)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

Identifies a browser condition under which redirection to a page that hosts a viewer for a specified type of document is overridden because the device can use an alternative viewer for the specified type of file, possibly a viewer that is installed on the device.

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

Complex

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

Attributes

Attribute

Description

Id

The name of a browser capability in the compat.browser file.

Value

True, if the presence of the capability means that redirection is overridden; otherwise, false.

Child elements

Element

Description

Override (Mobile Document Viewer)

Specifies an alternative redirection URL.

Parent elements

Element

Description

MobileDocViewer (Mobile Document Viewer)

Specifies redirection of a request for a document from a mobile device.

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:
© 2014 Microsoft