0

Is there a way to group by content type in Content Query Web Parts (CQWP)? I have created a list with 4 content types. We need to display the items in a CQWP but grouped by content type. I have tried manipulating an exported CQWP, but can't accomplish it.

0

I figured it out!

I modified the CQWP Snippet in my page layout display template.

In the CQWP Snippet change the following:

GroupBy="Author" GroupByFieldType="User" SortBy="Posted" SortByFieldType="DateTime" SortByDirection="Desc"

To:

GroupBy="ContentType" GroupByFieldType="Text" SortBy="ContentType" SortByFieldType="Text" SortByDirection="Asc"`

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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