Skip to content

Instantly share code, notes, and snippets.

@ceej989
Last active August 29, 2015 14:03
Show Gist options
  • Save ceej989/08dad7ba7b77801a3304 to your computer and use it in GitHub Desktop.
Save ceej989/08dad7ba7b77801a3304 to your computer and use it in GitHub Desktop.
What'son mycal.aspx PAGE
<%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> -
<SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
<asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:RssLink runat="server"/>
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('div[webpartid]').each(function(myIdx, myElem) {
var myId = $(myElem).attr('id').replace('WebPart', '');
var myCtx = window['ctx' + myId];
if (typeof myCtx !== "undefined") {
if (myCtx.listTemplate == "106") {
myCtx["NavigateForFormsPages"] = false;
}
}
});
});
</script>
</asp:content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"><SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
<SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
<SharePoint:ModifySettingsLink runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
<div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=23" width='6' height='1' alt="" /></div>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
<WebPartPages:ListViewWebPart runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{E223E6E7-613F-4A25-9890-7E9AB8F57F71}" >
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Conference Room Scheduling</Title>
<FrameType>Default</FrameType>
<Description>Use this calendar to view at a glance the availability of any PGPF conference rooms. </Description>
<IsIncluded>true</IsIncluded>
<PartOrder>2</PartOrder>
<FrameState>Normal</FrameState>
<Height />
<Width />
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<AllowConnect>true</AllowConnect>
<AllowEdit>true</AllowEdit>
<AllowHide>true</AllowHide>
<IsVisible>true</IsVisible>
<DetailLink>/Lists/CRS</DetailLink>
<HelpLink />
<HelpMode>Modeless</HelpMode>
<Dir>Default</Dir>
<PartImageSmall />
<MissingAssembly>Cannot import this Web Part.</MissingAssembly>
<PartImageLarge />
<IsIncludedFilter />
<ExportControlledProperties>false</ExportControlledProperties>
<ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
<ID>g_e223e6e7_613f_4a25_9890_7e9ab8f57f71</ID>
<WebId xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">00000000-0000-0000-0000-000000000000</WebId>
<ListViewXml xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">&lt;View Name="{E223E6E7-613F-4A25-9890-7E9AB8F57F71}" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" Type="CALENDAR" TabularView="FALSE" Scope="Recursive" RecurrenceRowset="TRUE" DisplayName="Calendar" Url="/Lists/CRS/calendar.aspx" Level="1" BaseViewID="2" ContentTypeID="0x" MobileUrl="_layouts/15/mobile/viewdaily.aspx" ImageUrl="/_layouts/15/images/events.png?rev=23"&gt;&lt;ViewFields&gt;&lt;FieldRef Name="EventDate" /&gt;&lt;FieldRef Name="EndDate" /&gt;&lt;FieldRef Name="Title" /&gt;&lt;FieldRef Name="fRecurrence" Explicit="TRUE" /&gt;&lt;/ViewFields&gt;&lt;CalendarViewStyles&gt;&amp;lt;CalendarViewStyle Title='Day' Type='day' Template='CalendarViewdayChrome' Sequence='1' Default='FALSE' /&amp;gt;&amp;lt;CalendarViewStyle Title='Week' Type='week' Template='CalendarViewweekChrome' Sequence='2' Default='TRUE' /&amp;gt;&amp;lt;CalendarViewStyle Title='Month' Type='month' Template='CalendarViewmonthChrome' Sequence='3' Default='FALSE' /&amp;gt;&lt;/CalendarViewStyles&gt;&lt;ViewData&gt;&lt;FieldRef Name="Title" Type="CalendarMonthTitle" /&gt;&lt;FieldRef Name="Title" Type="CalendarWeekTitle" /&gt;&lt;FieldRef Name="Category" Type="CalendarWeekLocation" /&gt;&lt;FieldRef Name="Title" Type="CalendarDayTitle" /&gt;&lt;FieldRef Name="Category" Type="CalendarDayLocation" /&gt;&lt;/ViewData&gt;&lt;Query&gt;&lt;Where&gt;&lt;And&gt;&lt;DateRangesOverlap&gt;&lt;FieldRef Name="EventDate" /&gt;&lt;FieldRef Name="EndDate" /&gt;&lt;FieldRef Name="RecurrenceID" /&gt;&lt;Value Type="DateTime"&gt;&lt;Month /&gt;&lt;/Value&gt;&lt;/DateRangesOverlap&gt;&lt;Eq&gt;&lt;FieldRef Name="Room" /&gt;&lt;Value Type="Text"&gt;1234&lt;/Value&gt;&lt;/Eq&gt;&lt;/And&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;Aggregations Value="Off" /&gt;&lt;RowLimit&gt;0&lt;/RowLimit&gt;&lt;Mobile MobileItemLimit="3" /&gt;&lt;Toolbar Type="Standard" /&gt;&lt;CalendarSettings&gt;&lt;AggregationCalendars&gt;&lt;AggregationCalendar Id="{5cf6ddba-4e28-4ae4-be8d-7004029b0bdb}" Type="SharePoint" Name="17th Floor Conference Room" Description="" Color="1" AlwaysShow="True" CalendarUrl="/Lists/CRS/17th Floor Conference Room.aspx"&gt;&lt;Settings WebUrl="http://home.pmgmtllc.com/CRS" ListId="{a9de065d-29c2-4ae7-b075-4ebcb3f38605}" ViewId="{d52af162-0d6d-476c-a99b-33f3c2379731}" ListFormUrl="/Lists/CRS/DispForm.aspx" /&gt;&lt;/AggregationCalendar&gt;&lt;AggregationCalendar Id="{b87ee40d-0f17-409a-973c-c5982c9ce9fe}" Type="SharePoint" Name="47th Floor SMALL Conference Room" Description="" Color="3" AlwaysShow="True" CalendarUrl="/Lists/CRS/47th Floor Conference Room.aspx"&gt;&lt;Settings WebUrl="http://home.pmgmtllc.com" ListId="{a9de065d-29c2-4ae7-b075-4ebcb3f38605}" ViewId="{7f8b2260-44bc-4c6e-8980-154478d26573}" ListFormUrl="/Lists/CRS/DispForm.aspx" /&gt;&lt;/AggregationCalendar&gt;&lt;AggregationCalendar Id="{05f83944-7acd-4419-922c-3adb450bae19}" Type="SharePoint" Name="48th Floor SMALL Conference Room" Description="" Color="5" AlwaysShow="True" CalendarUrl="/Lists/CRS/48th Floor SMALL Conference Room.aspx"&gt;&lt;Settings WebUrl="http://home.pmgmtllc.com" ListId="{a9de065d-29c2-4ae7-b075-4ebcb3f38605}" ViewId="{ef21bcaf-3f42-4469-8901-4488be0e5143}" ListFormUrl="/Lists/CRS/DispForm.aspx" /&gt;&lt;/AggregationCalendar&gt;&lt;AggregationCalendar Id="{5aae0de3-6c9f-4614-8f9c-ebfece94c56f}" Type="SharePoint" Name="48th Floor LARGE Conference Room" Description="" Color="6" AlwaysShow="True" CalendarUrl="/Lists/CRS/48th Floor LARGE Conference Room.aspx"&gt;&lt;Settings WebUrl="http://home.pmgmtllc.com" ListId="{a9de065d-29c2-4ae7-b075-4ebcb3f38605}" ViewId="{ecbea3e4-c7c4-4690-9037-efcfc72cdc8b}" ListFormUrl="/Lists/CRS/DispForm.aspx" /&gt;&lt;/AggregationCalendar&gt;&lt;/AggregationCalendars&gt;&lt;/CalendarSettings&gt;&lt;ViewHeader /&gt;&lt;ViewBody /&gt;&lt;ViewFooter /&gt;&lt;ViewEmpty /&gt;&lt;ParameterBindings&gt;&lt;ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" /&gt;&lt;ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" /&gt;&lt;/ParameterBindings&gt;&lt;/View&gt;</ListViewXml>
<ListName xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">{A9DE065D-29C2-4AE7-B075-4EBCB3F38605}</ListName>
<ListId xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">a9de065d-29c2-4ae7-b075-4ebcb3f38605</ListId>
<PageType xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">PAGE_DEFAULTVIEW</PageType>
<ViewFlag xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">27799553</ViewFlag>
<ViewFlags xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">Html Recursive RecurrenceRowset Calendar FilesOnly Mobile DefaultMobile</ViewFlags>
<ViewContentTypeId xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">0x</ViewContentTypeId>
</WebPart>
</WebPartPages:ListViewWebPart>
</ZoneTemplate></WebPartPages:WebPartZone>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
<SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
<SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
<ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
</asp:Content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment