内容查询webpart sharepoint中未显示多行文本列

时间:2012-11-28 07:23:00

标签: sharepoint sharepoint-2007 cqwp

我想在CQWP中添加自定义列文档描述,我在ItemStyle.xsl中添加了以下代码

  

xsl:value-of select =“@ Document_x0020_Description”disable-output-escaping =“yes”

在wepart中我使用了下面的代码

  

property name =“CommonViewFields”type =“string”> Document_x0020_Description,Note

但即使在CQWP没有显示其值之后,它仍然是空白但是当我为“单行文本”类型列执行相同的步骤时,那么在这种情况下所有都工作正常。

请告诉我如何在CQWP中添加多行文字列

1 个答案:

答案 0 :(得分:0)

尝试在webpart中设置属性“DataMappingViewFields”和“DataMappings”,如:

<property name="DataMappings" type="string">LinkUrl:{94f89715-e097-4e8b-ba79-ea02aa8b7adb},FileRef,Lookup;|Description:{691b9a4b-512e-4341-b3f1-68914130d5b2},ShortComment,Text;|ImageUrl:{b9e6f3ae-5632-4b13-b636-9d1a2bd67120},EncodedAbsThumbnailUrl,Computed;{543bc2cf-1f30-488e-8f25-6fe3b689d9ac},PublishingRollupImage,Image;|Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|Ingress:{C0ECDC73-85A2-478B-823D-B882219ACA8A},Ingress,Note;|</property>

<property name="DataMappingViewFields" type="string">{94f89715-e097-4e8b-ba79-ea02aa8b7adb},Lookup;{b9e6f3ae-5632-4b13-b636-9d1a2bd67120},Computed;{543bc2cf-1f30-488e-8f25-6fe3b689d9ac},Image;{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Text;{691b9a4b-512e-4341-b3f1-68914130d5b2},Text;{C0ECDC73-85A2-478B-823D-B882219ACA8A},Note;</property>

此处称为“Ingress”的最后一个属性是Note-field。也许这会使字段在xsl中可用?