0

When created a CQWP to load a doc library of a subsite, it seems that the subfolders of the parent folder were also displayed. Is there any way to display in hierarchy like the subfolders are under the parent folder...

Or any better way to display a doc list in a subsite of the root site collection?

1
  • can you please be more specific with your question?means add some more details or some screen snaps,so viewrs will be more clear with that
    – Madhav
    Dec 30, 2016 at 9:24

1 Answer 1

0

I'd suggest using a List View Web Part to display the document library instead. This will allow you to manipulate the view of the library (which, to my understanding, is what you're looking for).

  1. Open the document library in SharePoint Designer
  2. Right-Click within the <WebPartPages:XsltListViewWebPart> tag and select "Tag Properties"
  3. Click "OK" on the window that pops up. A new ribbon category should appear
  4. Under "List View Tools" click "Web Part" and then on the far right, "To Site Gallery"
  5. Click "Ok" on the first pop up window
  6. Then make sure to hit "Yes" on the second pop up message

The new web part will be under "Miscellaneous." You add it and can manipulate the view just like a normal document library.

Microsoft Info on List View Web Part

2
  • this does not seem to work in Sharepoint Online. I tried this and I get List not found whenever I try to add the webpart Jan 5, 2017 at 20:15
  • Make sure you follow step 2. If the ribbon shows Code View Tools and Web Part Tools then it will not work. The ribbon must show the List view Tools with Web Part as an option. The message that starts, "Do you want this Web Part to always show..." must pop up and you must hit "Yes" for the web part to work.
    – anonymous
    Jan 5, 2017 at 21:19

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.