SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use the Content Query Web Part to display all the tasks within a site collection, I've attached images of the Web Part properties and final output below.

I'm looking for information on how to include additional fields within the output. Ideally I would like to see the Title, Due Date, Priority, % Complete and provide a link to the actual task form/parent list.

Is anyone able to provide me with an example solution which I can expand on, or information and pointers which will get me started in the right direction?

Query Properties Query Properties Content Query Output

share|improve this question
up vote 4 down vote accepted

Content By Query Web Part is XSL based, by default, Title, Description, ImageUrl, and LinkUrl columns (if present) of the items that the query returns are rendered. The Web Part renders the ImageUrl column and the LinkUrl column as an image and as a hyperlink, respectively.

If you want to query for custom content types and render specific columns from those content types in the Web Part, you must perform some minor customization in the web part.

CommonViewFields property is used to specify the additional fields that you want to display in the Web Part

Please follow article How to: Display Custom Fields in a SharePoint Content By Query Web Part (ECM) for a more details

Article How to: Customize XSL for the SharePoint Content By Query Web Part (ECM) explains how to customize the rendering

It is also recommended to take a look at article Customizing the Content Query Web Part and Custom Item Styles, it gives a basic understanding how to customize CQWP

share|improve this answer

You will need to create some custom XSLT which will allow you to present whatever fields you like. If you need a steer on this there are a couple of blog posts which may help -

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.