在sharepoint功能中导入2个自定义列表,第二个列表与第一个自定义字段具有相同的自定义字段
我有一个使用WSPBuilder构建的MOSS 2007 wsp解决方案,其中包含2个自定义列表的定义。在我的elements.xml文件中,每个列表都有一个和一个节点。但是,当我激活该功能时,两个自定义列表都会在第二个列表中列出自定义列。当我为其中一个列表注释掉和xml节点时,另一个完全导入。此外,当我颠倒xml节点的顺序时,列表将具有来自其他自定义列表的列。它们都始终从elements.xml中的第一个列表中获取字段。
我假设我有一些独特的id或某些地方重复的东西,所以第二个列表以某种方式从错误的模式文件或其他东西读取,我真的不确定。我没有在elements.xml文件中指定任何id,所以我假设在schema.xml文件中会发生重复?
有没有人知道我哪里可以开始看? schema.xml文件中有很多guid,我真的不知道从哪里开始。
elements.xml供参考:
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListTemplate
Name="Favorites"
DisplayName="Favorites"
Description=""
BaseType="0"
Type="100"
OnQuickLaunch="TRUE"
SecurityBits="11"
Image="/_layouts/images/itgen.gif" />
<ListInstance
Title="Favorites"
Url="Favorites"
Description="Favorites"
OnQuickLaunch="true"
TemplateType="100" />
<ListTemplate
Name="Folders"
DisplayName="Folders"
Description=""
BaseType="0"
Type="100"
OnQuickLaunch="TRUE"
SecurityBits="11"
Image="/_layouts/images/itgen.gif" />
<ListInstance
DocumentTemplate=""
Title="Folders"
Url="Folders"
Description="Folders"
OnQuickLaunch="true"
TemplateType="100" />
</Elements>
没有找到相关结果
已邀请:
1 个回复
豆兢