I'm reading up on the Content Query web part and based on this page, I can't understand the difference between the CommonViewFields property vs the ViewFieldsOverride property. How are they different?


1 Answer 1


OK, was looking into this and i 'think' i got it!

Using neither you will get only the base fields available in the link you posted.

Using only CommonViewFields you will get the base fields AND the fields added by the CommonViewFields property.

Finally, Using ViewFieldsOverride, it will NOT pull the base fields, and ONLY pull the fields you specify with the ViewFieldsOverride.

So if you want to be as efficient as possible and only pull what you need, use ViewFieldsOverride. If you have single CQWP on a page with a small amount of information, you could just use the CommonViewFields to pull what you need.

If someone could confirm what i said, i would appreciate it.

  • That appears right- I changed the ViewFieldsOverride property and it reduced the fields being returned in the XML that gets input to the xsl transform. I wasn't using a custom content type, so I didn't verify that CommonViewFields was including the base fields + whatever was specified there, but I suspect this is right. Thanks! =)
    – skjejee
    Commented Mar 22, 2012 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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