在我的自定义列表XML中,我添加了一些URL字段。其中一个必须显示为图片,就像在UI的字段设置中选择“将URL格式化为:图片”一样。
在customList的schema.xml中,我没有找到任何覆盖URL类型的html标记的地方。
欢迎任何帮助或线索:) 谢谢,
teebot
答案 0 :(得分:1)
尝试更改相关字段xml Schema的Format属性。 获取SharePoint Manager的副本进行试用。
<Field ID="{c29e077d-f466-4d8e-8bbe-72b66c5f205c}" Name="URL"
SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="URL"
Group="Base Columns" Type="URL" DisplayName="URL" ColName="nvarchar3"
RowOrdinal="0" ColName2="nvarchar4" RowOrdinal2="0" Format="Image" Version="1" />