CQWP that displays folder structure

Scott Gordon 1 Reputation point

Normally, CQWP surfaces contents of a library flatly, ignoring the folder structure.

I have a request to display the CQWP results as they are in the library, within the folders.

Checked the settings, didn't see anything.

Sharepoint server (2016).

Guidance appreciated!

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,293 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,594 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 18,051 Reputation points Microsoft Vendor

    Hi @Scott Gordon ,

    Content Query Web Part doesn’t support display items in a specific folder, this is by design.

    Find an alternative way for your requirement, you can set Additional Filters to filter items by the value of specific columns. Please see the answer in this thread: https://social.msdn.microsoft.com/Forums/office/en-US/0518c9b3-5ab0-40dd-af21-5097b864c0bf/how-to-show-contents-of-subdirectories-using-content-query-web-part?forum=sharepointdevelopment.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.