简体   繁体   English

定制站点定义模板wss 3.0

[英]custom site definition template wss 3.0

Is it possible to create a custom site definition template with 'n' number of custom document libraries and content types. 是否可以使用“ n”个自定义文档库和内容类型来创建自定义网站定义模板。 I have copied the ONET.xml file from the STS folder, ie I am trying to create a template the same as that of the OOTB Team Site template by modifying the ONET.xml but it fails. 我已经从STS文件夹复制了ONET.xml文件,即,我试图通过修改ONET.xml来创建与OOTB Team Site模板相同的模板,但是失败。

My ONET.xml contains the default configuration with a custom master page. 我的ONET.xml包含带有自定义母版页的默认配置。 Inside that Configuration tag I am specifying my custom List as follows: 在该Configuration标记内,我指定我的自定义列表,如下所示:

<Configuration ID="0" Name="Default" CustomMasterUrl="_catalogs/masterpage/samplests.master">    
<Lists>
<!-- Here I am defining a Custom List to be created with the OOTB List like Tasks -->
<List Name="SimpleList" Title="Simple List" BaseType="0" Direction="" Url="" />
</Lists>    
</Configuration>

Now while creating a site I select my custom template and it gives the error as follows: 现在,在创建站点时,我选择了自定义模板,它给出了如下错误:

Cannot complete this action.
Please try again.

Can you Try this 你可以试试这个吗

<List FeatureId="00BFEA71-DE22-43B2-A848-C05709900100" Type="100" Title="Simple List" Url="Lists/Simple List" />

I use this way. 我用这种方式。 Feature Id is the ID of the Custom List Feature 功能ID是自定义列表功能的ID

Url is Must which is missing from your Code 您的代码中缺少网址是必须的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM