2
我有一个自定义网站定义,我创建的部署了几个自定义页面布局。有谁知道需要做什么,以便当用户使用我的网站定义创建网站时,他们的default.aspx页面是使用我的自定义页面布局创建的?调配default.aspx页面以使用自定义页面布局
下面是我的网站定义的模块部分:
<Modules>
<Module Name="DefaultHome" Url="$Resources:osrvcore,List_Pages_UrlName;" Path="">
<File Url="default.aspx" Type="GhostableInLibrary" >
<Property Name="Title" Value="Test Home Page" />
<Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/MyCustomPageLayout.aspx, My Custom PageLayout" />
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_welcomepage_name;" />
<Property Name="PublishingPageContent" Value="Welcome to the My Test Publishing Site" />
</File>
</Module>
</Modules>
我能够得到它的工作。我不得不更新我的default.aspx页面,使其不包含任何内容占位符。 <%@ Page Inherits =“Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version = 12.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c”%> <%@ Reference VirtualPath =“〜TemplatePageUrl” %> <%@参考VirtualPath =“〜masterurl/default.master”%> 此页最初是从WebPartPage继承的,因此无法应用页面布局。谢谢! – mawaru
@mawaru:你应该为你的成功添加一个答案。然后,您可以接受它作为答案,并为此获得提升。 –