Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

SharePoint Online Custom Page Layout vs SharePoint 2013 Custom Page Layout

$
0
0

Hi there,

I created a custom page layout in SharePoint Online and it worked perfectly. But when i copied it across to a SharePoint 2013 environment, even though i could see the layout of the page but i cant see the options to add the web parts. 

This is the custom page layout created in SharePoint online

This is when i copied across to the SharePoint 2013 evironment.

Does the code needs to be updated to work in the SharePoint 2013(not online)?

Below is the custom page layout code. When i copied over, i had to update the publishing version to 14.0.0.0 from 16.0.0.0.

<%@ Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %><%@ Register Tagprefix="SharePointWebControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="OSRVWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="OSRVUPWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SEARCHWC" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><asp:Content ContentPlaceholderID="PlaceHolderAdditionalPageHead" runat="server"><SharePointWebControls:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/~language/Themable/Core Styles/pagelayouts15.css %>" runat="server"/><style type="text/css"> #sideNavBox{display: none;} #contentBox{margin:0;}</style><PublishingWebControls:EditModePanel runat="server"><!-- Styles for edit mode only--><SharePointWebControls:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/~language/Themable/Core Styles/editmode15.css %>" After="<% $SPUrl:~sitecollection/Style Library/~language/Themable/Core Styles/pagelayouts15.css %>" runat="server"/></PublishingWebControls:EditModePanel></asp:Content><asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"><SharePointWebControls:ListProperty Property="Title" runat="server"/> - <SharePointWebControls:FieldValue FieldName="Title" runat="server"/></asp:Content><asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server"><SharePointWebControls:FieldValue FieldName="Title" runat="server"/></asp:Content><asp:Content ContentPlaceHolderId="PlaceHolderTitleBreadcrumb" runat="server"> <SharePointWebControls:ListSiteMapPath runat="server" SiteMapProviders="CurrentNavigationSwitchableProvider" RenderCurrentNodeAsLink="false" PathSeparator="" CssClass="s4-breadcrumb" NodeStyle-CssClass="s4-breadcrumbNode" CurrentNodeStyle-CssClass="s4-breadcrumbCurrentNode" RootNodeStyle-CssClass="s4-breadcrumbRootNode" NodeImageOffsetX=0 NodeImageOffsetY=385 NodeImageWidth=16 NodeImageHeight=16 NodeImageUrl="/_layouts/15/images/fgimg.png" HideInteriorRootNodes="true" SkipLinkText=""/> </asp:Content><asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server"><SharePointWebControls:ProjectProperty Property="Description" runat="server"/></asp:Content><asp:Content ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server"></asp:Content><asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"><div class="mt-pageLayout"><div class="welcome blank-wp"><PublishingWebControls:EditModePanel runat="server" CssClass="edit-mode-panel title-edit"><SharePointWebControls:TextField runat="server" FieldName="Title"/></PublishingWebControls:EditModePanel><div class="welcome-content"><PublishingWebControls:RichHtmlField FieldName="PublishingPageContent" HasInitialFocus="True" MinimumEditHeight="400px" runat="server"/></div><div><div class="main-content"><div id="mt-zoneContainerSB_L"><div id="mt-headerZone"><WebPartPages:WebPartZone runat="server" Title="<%$Resources:cms,WebPartZoneTitle_Header%>" ID="Header"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone></div>

<div id="mt-centerTopZone"><WebPartPages:WebPartZone id="CenterTopZone" runat="server" title="Center Top"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone></div><div id="mt-middleZoneContainer"><div id="mt-centerRightZone"><WebPartPages:WebPartZone runat="server" Title="<%$Resources:cms,WebPartZoneTitle_CenterRight%>" ID="CenterRightRow"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone></div><div id="mt-centerLeftZone"><WebPartPages:WebPartZone runat="server" Title="<%$Resources:cms,WebPartZoneTitle_CenterLeft%>" ID="CenterLeftRow"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone></div></div><div class="mt-clearfloat"></div><div id="mt-centerBottomZone"><WebPartPages:WebPartZone id="CenterBottomZone" runat="server" title="Center Bottom"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone></div><!-- end #mt-centerZoneWrapper --><!-- end #mt-columnZone --><div id="mt-footerZone"><WebPartPages:WebPartZone runat="server" Title="<%$Resources:cms,WebPartZoneTitle_Footer%>" ID="Footer"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone></div><!-- end #mt-zoneContainer --></div></div><SharePointWebControls:ScriptBlock runat="server"> if(typeof(MSOLayout_MakeInvisibleIfEmpty) == &quot;function&quot;) {MSOLayout_MakeInvisibleIfEmpty();}</SharePointWebControls:ScriptBlock></div></div></div></asp:Content>

I would appreciate any help.

Thanks,

Regards,

Ravi



Viewing all articles
Browse latest Browse all 10096

Trending Articles