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.

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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