Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

deployment of publishing page using feature with custom layout in SP 2013 + office 365 + site Template

$
0
0

Hello Everyone,

deployed page layout as based this blog http://www.eliostruyf.com/provision-your-html-designs-master-pages-page-layouts-to-sharepoint-2013/, but while trying to create Publishing pages under Page

"Error: This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout."

my xml as below

<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Module Name="PageLayouts" Url="_catalogs/masterpage"  RootWebOnly="TRUE"><File Path="PageLayouts\DataByte_Home.html" Url="DataByte_Home.html" Level="Draft" ReplaceContent="true" Type="GhostableInLibrary"  IgnoreIfAlreadyExists="TRUE"><Property Name="Title" Value="DataByte_Home" /><Property Name="MasterPageDescription" Value="DataByte_Home" /><Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" /><Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/WelcomeSplash.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/WelcomeSplash.png" /><Property Name="PublishingAssociatedContentType" Value=";#$Resources:cmscore,contenttype_welcomepage_name;;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D4;#" /></File></Module><Module Name="CustomPages1" Url="Pages" Path="" RootWebOnly="FALSE"><File Name="Home.aspx" Url="Home.aspx" Type="GhostableInLibrary" Path="PageLayouts\DataByte_Home.html" IgnoreIfAlreadyExists="TRUE"><Property Name="Title" Value="Home" /><Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/DataByte_Home.aspx"/><Property Name="ContentType" Value="Page" /></File></Module></Elements>

as feature activation i am execution same code to upgrade .html to .aspx.

please guide me and give me some suggestion to packaged solution in single wsp(with Publishing pages, Page layouts and master page and site template to create site with all content)?


Viewing all articles
Browse latest Browse all 11571

Trending Articles