衍生或原生的CQWP在SharePoint 2010中匿名訪問有時會產生錯誤,在Log中找到相關GUID得出SetDocumentIconUrlAndOnClickString方法調用出錯。
解決方法:
爲CQWP加入二個屬性:
<
property
name
=
"CommonViewFields"
type
=
"string"
>DocumentIconImageUrl;OnClickForWebRendering</
property
>
具體來說是保存web part,找到
property
name
=
"
CommonViewFields"這一行(沒有的話插入這行)即可。
參考:
http://blog.mastykarz.nl/inconvenient-sharepoint-2010-content-query-web-part-anonymous-access/