您好我正在尝试将 SharePoint 2010 中的导航文件夹内容类型开发为 xml 格式。我严格遵守微软的规则。即使我在尝试激活该功能时得到“值不属于预期范围异常”。这是我使用的 xml 片段。
<ContentType ID=" 0x012000D53406347378474294E656BB5275621F" Name="Navigation Folder" Group="Navigation ContentTypes" Description="IHS Navigation">
<FieldRefs>
<FieldRef ID="{D3573D2A-7800-4B42-8A30-F59F85CFD1F8}" Name="ItemOrder" DisplayName="Item Order" Required="TRUE"/>
<FieldRef ID="{BBC9EB6E-A11C-46CC-80D3-28ECAADE06CB}" Name="OpenNewWindow" DisplayName="Open New Window" Required="FALSE"/>
<FieldRef ID="{D5978346-B494-4E94-823E-C40EE6919630}" Name="UrlAudience" DisplayName="Url Audience" Required="FALSE"/>
<FieldRef ID="{47263346-C54D-4055-811B-67755F2B2837}" Name="UrlDescription" DisplayName="Url Description" Required="FALSE" />
<FieldRef ID="{1795B452-70BA-4FAC-A781-4EB593A0954C}" Name="UrlLink" Required="FALSE"/>-->
</FieldRefs>
</ContentType>
站点列已激活,列 ID 与此相同。