Partilhar via


Override (Mobile Document Viewer)

Applies to: SharePoint Foundation 2010

Specifies an alternative URL to which a mobile device is redirected when it can use an alternative viewer to open the files of the specified type.

MobileDocViewers (Mobile Document Viewer)
  MobileDocViewer (Mobile Document Viewer)
    BrowserCondition (Mobile Document Viewer)
      Override (Mobile Document Viewer)

<Override ... />

Complex

Attributes and Elements

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

Attributes

Attribute

Description

FilePath

The website-relative path to the request handler for devices that are capable of opening documents of the specified type in some other viewer.

AppendSourceUrl

True, if a source query ID should be appended to the URL of the handler; otherwise, false. The source query value is the path to the document.

OueryID

An alternative query for the one that is specified in the parent <MobileDocViewer> element.

Child Elements

None

Parent Elements

Element

Description

BrowserCondition (Mobile Document Viewer)

Identifies a browser condition under which redirection to a page that hosts a viewer for a specified type of document is overridden because the browser can open documents of a specified type directly.

Example

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>

See Also

Concepts

Developing Mobile Document Viewers