Templates MOSS:从发布网站创建网站模板

Templates MOSS:从发布网站创建网站模板,templates,sharepoint-2007,moss,Templates,Sharepoint 2007,Moss,在我的MOSS站点上,我正在尝试将发布站点保存为站点模板。然后从此模板创建子网站 我能够成功创建网站模板,并将其填充到网站模板库中。遵照这些指示 但当我尝试从此模板创建子网站时,会显示一条错误消息,说明: The template you have chosen is invalid or cannot be found. at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUr

在我的MOSS站点上,我正在尝试将发布站点保存为站点模板。然后从此模板创建子网站

我能够成功创建网站模板,并将其填充到网站模板库中。遵照这些指示

但当我尝试从此模板创建子网站时,会显示一条错误消息,说明:

The template you have chosen is invalid or cannot be found.   at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
   at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
当我将站点模板保存为.stp文件,然后重命名为.cab并提取和查看manifest.xml时,我看到TemplateID=39。这是否与法律冲突 具有相同ID的CMSPublishing模板

如果是,我如何更改ID并重新打包cab文件

-编辑-我尝试将ID从39更改为327,并重新打包cab和上载,尽管在创建子网站时网站模板确实作为选项出现。。。。因此,多个模板是否具有相同的templateID并不重要

非常感谢,,
Nav

查看sharepoint诊断日志后,我发现从模板应用的功能失败

将web功能与sharepoint列出的web和网站功能列表进行比较,我删除了列表中没有的功能,特别是那些无法从日志中应用的功能

使用下面的cabarc N命令重新生成输出到stp文件的cab文件:

然后发布模板成功应用,请注意,创建网站后,您必须重新打开发布功能

下面是提取到cab文件后从stp的manifest.xml中提取的webfeatures的摘录

<WebFeatures>
<Feature ID="e8734bb6-be8e-48a1-b036-5a40ff0b8a81"/>
<Feature ID="56dd7fe7-a155-4283-b5e6-6147560601ee"/>
<Feature ID="0be49fe9-9bc9-409d-abf9-702753bd878d"/>
<Feature ID="99fe402e-89a0-45aa-9163-85342e865dc8"/>
<Feature ID="541f5f57-c847-4e16-b59a-b31e90e6f9ea">
<Properties>
<Property Key="InheritGlobalNavigation" Value="true"/>
<Property Key="ShowSiblings" Value="true"/>
<Property Key="IncludeSubSites" Value="true"/>
</Properties>
</Feature>
</WebFeatures>