网站已开启移动视图。
其中一个示例的代码如下:
自定义移动列表视图页
<%@ Register TagPrefix="GroupBoardMobile" Namespace="Microsoft.SharePoint.Applications.GroupBoard.MobileControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SPMobile" Namespace="Microsoft.SharePoint.MobileControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="WPMobile" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<SharePoint:RenderingTemplate RunAt="Server"
ID="Mobile_STS_HomePage_Redirect">
<Template>
<SPMobile:SPMobileHomePageRedirection RunAt="Server"
PageFileName="ContosoHomePage.aspx" />
</Template>
</SharePoint:RenderingTemplate>
SharePoint开启移动视图后,手机上显示的是“流行型视图”,怎么切换为”经典视图“?
比如 mbllistsa.aspx和mbllists.aspx两个不同的呈现效果页面。
基于IHttpModule自己实现一个httpmodule,然后截获请求,发现是自 mbllistsa.aspx页面然后把请求跳转到mbllists.aspx页面,可以使用Request.Browser.IsMobileDevice 判断是不是移动设备
I have a SharePoint 2013 site, I want to display it in the mobile, when I open the site in the mobile, it's opening same as in the browser is there any way to display like mobile application, with my custom menu? 银行金库远程监控报警管理系统解决方案
If I want to develop an application with my custom menu's for mobile for all mobiles is there any guidelines how to achieve this?
You have many options for developing Mobile Site for SharePoint 2013:
1. Create a separate site and redirect to it if you access Site with mobile. You can configure mobile redirection in app_browsers check file compat.browser:
<gateway id="HTCIE" parentID="ie">
<identification>
<userAgent match="HTC" />
</identification>
<capabilities>
<capability name="isMobileDevice" value="true" />
</capabilities>
</gateway>
Update your user agent for supported Mobile like above
2. You can use same page and customize it with different view of Mobile:
You can create many channels depend on your supported Mobiles UserAgents.
You can associate different masterpage for different channel
You can Hide/Show Controls in Layouts depend on UserAgents