在Content Query Webpart的QueryOverride中使用PageQueryString [英] Using PageQueryString in QueryOverride in Content Query Webpart

查看:67
本文介绍了在Content Query Webpart的QueryOverride中使用PageQueryString的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用"PageQueryString"在Content Query Webpart的QueryOverride CAML中?我知道您可以在CQW的属性中执行此操作,但是在QueryOverride中需要它,因为我有3个以上的过滤器.

Is it possible to use "PageQueryString" in the QueryOverride CAML in a Content Query webpart?  I know you can do it in the properties of the CQW, but I need it in the QueryOverride because I have more than 3 filters.  Thanks in advance!

推荐答案

您好,您不能使用现成的CQWP来实现,但是可以通过扩展CQWP来实现,请查看以下文章,讨论子类扩展的作者允许CAML查询支持参数替换从页面的查询 字符串.此扩展使Web部件可以基于查询字符串参数动态过滤内容.此扩展程序还提供了增强的UI,具有在工具窗格中提供的_CommonViewFields_和_QueryOverride_属性.

you cannot do it using out-of-the box CQWP , but you can achieve it by extending the CQWP , please have a look on the following articles , writers talking about sub-class extension allows the CAML query to support parameter replacement from the page’s query string.  This extension enables the web part to filter content dynamically, based on query string parameters. This extension also provides an enhanced UI with the _CommonViewFields_ and _QueryOverride_ properties present in the tool pane.

http://www.andrewconnell.com/blog/Subclassing-the-Content-Query-Web-Part-Adding-Dynamic-Filtering

http://www.andrewconnell.com/blog/Subclassing-the-Content-Query-Web-Part-Adding-Dynamic-Filtering

https://archive.codeplex.com/?p=sptoolbox

https://archive.codeplex.com/?p=sptoolbox

https://stackoverflow.com/questions/7292199/extend-content-query-web-part-via-code

https://stackoverflow.com/questions/7292199/extend-content-query-web-part-via-code

https://blogs.msdn.microsoft.com/rakhiguha/2015/01/15/sharepoint-extended-content-query-web-partecqwp-enabling-pagination/

https://blogs.msdn.microsoft.com/rakhiguha/2015/01/15/sharepoint-extended-content-query-web-partecqwp-enabling-pagination/

https://www.netwoven.com/2015/05/29/how-to-enhance-filter-criteria-of-content-query-web-part-for-document-libraries/

https://www.netwoven.com/2015/05/29/how-to-enhance-filtration-criteria-of-content-query-web-part-for-document-libraries/


这篇关于在Content Query Webpart的QueryOverride中使用PageQueryString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆