Home > CMS- Content Management System > Sharepoint > How to display a specific folder in a document library in SharePoint

How to display a specific folder in a document library in SharePoint

This post was most recently updated on July 31st, 2024

Hello everyone, in this post, I will explain step by step details on how to set the document library web part view to a specific subfolder. OOB SharePoint online does not support view to show the subfolder of the document library.

Steps to set the document library web part view to a specific subfolder:

  1. Create a view of the document library
    Create a document library and create a view of being able to use it in the page viewer web part. In my scenario, I am using the Shared Documents library and created the FolderView.aspx. This FolderView.aspx is a normal view same as All Documents to created for the document library.

    This FolderView.aspx will be changed to show the documents inside the TestFolder folder.
  2. Edit FolderView.aspx view page in Sharepoint designer
    Add following code to PlaceHolderMain.


    Here we add FolderNavigation jsto show navigation breadcrumb.

  3. Call above created view in the Page Viewer web part.
    Create the page to add the Page Viewer web part for the document library to open newly created view. Now edit web part properties to specify a link including a folder. In my case, I specify path including TestFolder “/Shared Documents/Forms/FolderView.aspx?RootFolder=%2FShared%20Documents%2FTestFolder&FolderCTID=0x012000485BE4A000E3094EAB0FECE5374C3AAE&View=%7BC7351D50-94E8-4F81-9533-FC0599DC6C82%7D”.

    After successfully adding page viewer web part, page will look like a 
     
    When you click on Demo folder it creates navigation breadcrumb see below screenshot. 

Reference:

Let us know in the comment section if you want more information on SharePoint Document library.

This Article is TAGGED in , , , , . BOOKMARK THE permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">