Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

Configure mobile views (SharePoint Foundation 2010)

SharePoint 2010

Published: May 12, 2010

A mobile view is a version of the SharePoint site that has been optimized for mobile devices. In Microsoft SharePoint Foundation, mobile views are enabled by default for most lists or libraries that were created by using default templates. Mobile views are not enabled by default for custom lists, custom libraries, or for lists or libraries that were created in previous versions of SharePoint that have been upgraded to SharePoint Foundation. Mobile views are not available for Datasheet and Gantt view types.

The browser definition file lists the mobile browsers and devices that are supported by SharePoint Foundation and is used to redirect mobile browsers to the mobile views. You can modify the browser definition file to change the redirect behavior of a mobile browser, or to add or delete entries from the list of supported mobile devices.

In this article:

Configure mobile views

This section describes how to configure mobile views for custom lists, custom libraries, or for lists or libraries that were created in previous versions of SharePoint.

note Note:

Mobile views are not available for Datasheet and Gantt view types.

To configure the mobile view for a list

  1. In the list for which you want to configure the mobile view, in List Tools, click the List tab on the ribbon.

  2. On the ribbon, in the Manage Views group, click Modify View.

  3. On the Edit <list type> View page, expand Mobile, and then configure the following settings according to your preferences:

    note Note:

    Not all settings are available for all views.

    Enable this view for mobile access

    Make this view the default view for mobile access

    Number of items to display in list view web part for this view

    Field to display in mobile list simple view

To configure the mobile view for a library

  1. In the library for which you want to configure the mobile view, in Library Tools, click the Library tab on the ribbon.

  2. On the ribbon, in the Manage Views group, click Modify View.

  3. On the Edit View page, expand Mobile, and then configure the following settings according to your preferences:

    note Note:

    Not all settings are available for all views.

    Enable this view for mobile access

    Make this view the default view for mobile access

    Number of items to display in list view web part for this view

    Field to display in mobile list simple view

Modify the browser definition file (compat.browser)

The browser definition file contains a list of the mobile browsers and devices that can access mobile views in SharePoint Foundation. When a user browses a SharePoint site from a mobile device, the mobile browser submits to the site an HTTP GET request that includes a user agent string. If the mobile browser and device model in the user agent string are listed in the browser definition file and the isMobileDevice setting for the mobile browser is set to true, SharePoint Foundation redirects the mobile browser to the mobile view of the site. Otherwise, a standard view of the site is shown in the mobile browser. You can modify the file to change the redirect behavior of a mobile browser.

The browser definition file lists the mobile browsers and devices that are supported by SharePoint Foundation. The file can be updated when product updates to SharePoint Foundation are released. You can also modify the file to add a mobile browser or device to the list.

note Note:

There is a compat.browser file for each Internet Information Services (IIS) Web site.

To change the redirect behavior of a mobile browser

  1. Start IIS Manager by typing INETMGR at a command prompt.

  2. Right-click the IIS Web site where the SharePoint Web application is installed, and then click Explore.

  3. In Windows Explorer, double-click the App_Browsers folder.

  4. Open the compat.browser file in a text editor.

  5. Find the <browser> node that corresponds to the mobile browser or device that you want to modify.

  6. Find the <capability name="isMobileDevice" value="true" /> element.

  7. Set the value attribute to false to display a standard view of the site in the mobile browser.

  8. Save your changes to the compat.browser file.

  9. Restart IIS by entering the following command at the command prompt: iisreset /noforce.

To add a mobile browser or device, you create a <browser> node that identifies the mobile browser or device and defines its capabilities. For more information about what can be entered in the <browser> node, see Browser Definition File Schema (browsers Element) (http://go.microsoft.com/fwlink/p/?LinkID=146162).

To add a mobile browser and device model

  1. Start IIS Manager by typing INETMGR at a command prompt.

  2. Right-click the IIS Web site where the SharePoint Web application is installed, and then click Explore.

  3. In Windows Explorer, double-click the App_Browsers folder.

  4. Open the compat.browser file in a text editor.

  5. Find the <browsers> node.

  6. Add a new <browser> node to the end of the list of browsers.

  7. Save your changes to the compat.browser file.

  8. Restart IIS by entering the following command at the command prompt: iisreset /noforce.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.