Share via


Dynamically filtering the Content Query Web Part

As we've often written in this blog, the Content Query Web Part is a great tool for aggregating portions of your site's content based on certain rules (filters, sorts, groupings).  However, out of the box the web part is pretty static in what piece of content it shows.  For example, if I configure the web part to show the latest 5 documents of type "Press Release", the part will always show the latest 5 press releases.  What if I want to do something more dynamic, based on the context of the current page?

Andrew Connell has published a post on how to add dynamic filtering to the Content Query Web Part.  Andrew describes a case of making the web part filter dynamically based on query string parameters, and provides a sample, too.  Thanks Andrew!

--George Perantatos, ECM Program Manager