0

我们有一个 SP2010 站点,我们在该站点上广泛使用了 CQWP(内容查询 Web 部件)。当我将 CQWP 指向特定列表时,它会很好地显示描述值。问题是当我将其指向 SPWeb 的层次结构并将其配置为汇总日历类型的所有项目时。当我这样做时,所有数据都很好,除了描述,这很奇怪。我也尝试使用内部字段名称,它似乎没有任何区别。

所以我的问题是如何让 CQWP 从多个日历列表中呈现描述字段?

4

1 回答 1

1

I was able to get this working by changing the DataMappings, and DataMappingViewFields. The values in these fields are very sensitive and a space or semi-colon in the wrong place will break it. I've posted what worked below, hopefully this will save someone else two days of misery!

<property name="DataMappings" type="string">Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|LinkUrl:|Description:{9da97a8a-1da5-4a77-98d3-4bc10456e700},Comments,Note;|ImageUrl:{b9e6f3ae-5632-4b13-b636-9d1a2bd67120},EncodedAbsThumbnailUrl,Computed;{543bc2cf-1f30-488e-8f25-6fe3b689d9ac},PublishingRollupImage,Image;|EndDate:{2684f9f2-54be-429f-ba06-76754fc056bf},EndDate,DateTime;|EventDate:{64cd368d-2f95-4bfc-a1f9-8d4324ecb007},StartDate,DateTime;|</property>


<property name="DataMappingViewFields" type="string">{b9e6f3ae-5632-4b13-b636-9d1a2bd67120},Computed;{543bc2cf-1f30-488e-8f25-6fe3b689d9ac},Image;{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Text;{9da97a8a-1da5-4a77-98d3-4bc10456e700},Note;{64cd368d-2f95-4bfc-a1f9-8d4324ecb007},DateTime;{2684f9f2-54be-429f-ba06-76754fc056bf},DateTime;</property>
于 2011-05-03T23:23:54.800 回答