2010-05-14 86 views
0

在我的MOSS的網站,我試圖挽救發佈網站的網站模板創建網站模板。然後從這個模板創建子網站。MOSS:從發佈網站

我能夠成功地創建了網站模板,並在網站模板庫填充。按照這些指示.. http://blah.winsmarts.com/2007-7-All_you_ever_wanted_to_know_about_SharePoint_2007_Site_Templates.aspx

但是,當我嘗試從該模板創建一個子網站,將顯示一條錯誤消息:

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文件?

- 編輯 - 我試圖從39更改ID爲327和重新包裝的駕駛室和上傳雖然創建子網站時,該網站模板不會出現作爲一個選項....所以,如果多個模板都不要緊相同的templateID。

非常感謝, 導航

回答

0

看的SharePoint診斷日誌後,我發現,正在從分別失敗的模板應用功能。

比較網絡功能以SharePoint的上市網站和網站功能我刪除的那些沒有特別的名單從日誌應用於那些被失敗的功能列表。

重建使用下面的CABARC N命令輸出到STP文件的CAB文件:然後,已成功應用於 http://billwg.blogspot.com/2009/04/how-to-modify-project-portal-site.html

發佈模板,請注意你將不得不關閉發佈功能回到一旦創建了網站。

下面是從manifest.xml中從STP截取的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> 
後的提取物