我有一个使用 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>