Configure mobile views (SharePoint Foundation 2010)
Applies to: SharePoint Foundation 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
Modify the browser definition file (compat.browser)
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
Mobile views are not available for Datasheet and Gantt view types.
To configure the mobile view for a list
In the list for which you want to configure the mobile view, in List Tools, click the List tab on the ribbon.
On the ribbon, in the Manage Views group, click Modify View.
On the Edit <list type> View page, expand Mobile, and then configure the following settings according to your preferences:
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
In the library for which you want to configure the mobile view, in Library Tools, click the Library tab on the ribbon.
On the ribbon, in the Manage Views group, click Modify View.
On the Edit View page, expand Mobile, and then configure the following settings according to your preferences:
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
There is a compat.browser file for each Internet Information Services (IIS) Web site.
To change the redirect behavior of a mobile browser
Start IIS Manager by typing INETMGR at a command prompt.
Right-click the IIS Web site where the SharePoint Web application is installed, and then click Explore.
In Windows Explorer, double-click the App_Browsers folder.
Open the compat.browser file in a text editor.
Find the
<browser>
node that corresponds to the mobile browser or device that you want to modify.Find the
<capability name="isMobileDevice" value="true" />
element.Set the
value
attribute tofalse
to display a standard view of the site in the mobile browser.Save your changes to the compat.browser file.
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) (https://go.microsoft.com/fwlink/p/?LinkID=146162).
To add a mobile browser and device model
Start IIS Manager by typing INETMGR at a command prompt.
Right-click the IIS Web site where the SharePoint Web application is installed, and then click Explore.
In Windows Explorer, double-click the App_Browsers folder.
Open the compat.browser file in a text editor.
Find the
<browsers>
node.Add a new
<browser>
node to the end of the list of browsers.Save your changes to the compat.browser file.
Restart IIS by entering the following command at the command prompt: iisreset /noforce.