zoukankan      html  css  js  c++  java
  • SharePoint如何配置Ipad跳转等问题

    如何配置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 FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTSMOBILE”下找到“mbllists.aspx”和“mblwp.aspx”文件

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

      protected void Page_load(object sender, EventArgs e)

      {

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

      }

  • 相关阅读:
    ORA-01033: ORACLE initialization or shutdown in progress
    String.Format 格式化货币的小问题
    SQL Server——存储过程
    如何书写优雅、漂亮的SQL脚本?
    清除Chrome浏览器的历史记录、缓存
    SQL模板资源管理器,你用了吗?
    WPF笔记(2.4 Grid)
    python实现插入排序
    冒泡算法实现
    python获取本地ip地址的方法
  • 原文地址:https://www.cnblogs.com/codelove/p/3408679.html
Copyright © 2011-2022 走看看