SharePoint如何配置Ipad跳转等问题

简介: 如何配置Ipad跳转 Apple iPad 设备上不支持 SharePoint 标准视图。用户可以改用移动视图在 iPad 设备上查看 SharePoint 内容。默认情况下,iPad 用户被重定向到 SharePoint 网站的标准视图。

如何配置Ipad跳转

Apple iPad 设备上不支持 SharePoint 标准视图。用户可以改用移动视图在 iPad 设备上查看 SharePoint 内容。默认情况下,iPad 用户被重定向到 SharePoint 网站的标准视图。这是因为 iPad 用户代理没有包含在浏览器定义文件 (compat.browser) 中。若要更改 iPad 用户的默认视图,您必须将 iPad 用户代理字符串添加到 compat.browser 文件中,并将 isMobileDevice 设置为 true。这会将 iPad 用户重定向到 SharePoint 网站的移动视图。

下面的示例演示可用于 iPad 设备的用户代理字符串。

<!-- iPad Safari Browser -->
<!-- sample UA "Mozilla/5.0 (iPad; U; CPU OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5" -->
<browser id="iPadSafari" parentID="AppleSafari">
<identification>
<userAgent match="iPad" />
<userAgent match="Mobile" />
</identification>
<capabilities>
<capability name="isMobileDevice" value="true" />
<capability name="canInitiateVoiceCall" value="true" />
<capability name="optimumPageWeight" value="1500" />
<capability name="requiresViewportMetaTag" value="true" />
<capability name="supportsTouchScreen" value="true" />
<capability name="telephoneNumberDetectionDisabled" value="true" />
</capabilities>
</browser>

有关如何更新 compat.browser 文件的详细信息,请参阅配置移动视图 (SharePoint Server 2010) 中的修改浏览器定义文件 (compat.browser) 一节。有关如何结合使用 iPad 设备和 SharePoint 2010 产品的详细信息,请参阅 SharePoint 2010 和 Apple iPad(该链接可能指向英文页面) (http://go.microsoft.com/fwlink/?linkid=214218&clcid=0x804)(该链接可能指向英文页面)

The following XML needs to be added within <system.web> within the web.config file of the site:

<browserCaps>
<result type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<filter>isMobileDevice=false</filter>
</browserCaps>

 

如何禁用手机视图跳转

  • 如果你定制了手机页面,而不想用户访问之前原生的手机视图,你可以禁用原生的手机视图。命令如下:
  • Disable-SPFeature -Identity MobilityRedirect -Url http://yoursite

 

如何从SharePoint手机页面跳转到自定义页面

  • 1.在目录“C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\MOBILE”下找到“mbllists.aspx”和“mblwp.aspx”文件

    2.在这两个文件的“<script runat="server">”中均添加以下事件:

    protected void Page_load(object sender, EventArgs e)

    {

    Response.Redirect("~/_LAYOUTS/YourMobileHtml");

    }

目录
相关文章
301IIS跳转
301IIS跳转
25 0
|
Web App开发 前端开发 JavaScript