在Content Query Webpart的QueryOverride中使用PageQueryString [英] Using PageQueryString in QueryOverride in Content Query Webpart
问题描述
是否可以使用"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!
推荐答案
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屋!