【发布时间】:2010-06-15 23:02:16
【问题描述】:
我已经开始编写一个简单的功能来创建网站栏和内容类型。如果我尝试这样激活该功能,它会给我错误值不在预期范围内,并且没有什么帮助。如果我删除 ContentType 标记,该功能会很好地激活,并且我可以看到新创建的 Account 站点列。知道 ContentType 的错误是什么吗?
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field
ID="{345C9562-F0D9-4327-853B-5072E296823A}"
Name="Account"
DisplayName="Account"
Type="Text"
Group="Accounts">
</Field>
<ContentType
ID="0X010100"
Name="Account Doc"
Description="Account Doc"
Version="0"
Group="Account Types">
<FieldRefs>
<FieldRef
ID="{345C9562-F0D9-4327-853B-5072E296823A}"
Name="Account"
DisplayName="Account" />
</FieldRefs>
</ContentType>
</Elements>
【问题讨论】:
标签: sharepoint moss wss