Home > CMS- Content Management System > Sharepoint > Navigation for SharePoint 2013 Document Library

Navigation for SharePoint 2013 Document Library

Whenever we add a list view web part in a page and navigate in the different folder, there are no way to back to the previous folder.

So Using the below steps, we can find out the exact location of the file and can navigate in various level of folder.

  • Download the FolderNavigation.js file from here.
  • Now we need to upload the .js file in the Master page gallery of root site.  Note: If we upload the file in other document library or any other script related folder, then it will not work.
  •  Go to the Root Site –> Site Settings –> Master Pages and Page Layouts (Under the Web Designer Galleries section)

  • Click on the “New Document” option under the File tab in the SharePoint ribbon. Select “JavaScript Display Template”.

  • Upload the .Js file and verify the properties of the file
  • Properties:
    • Content type : JavaScript Display Template
    • Target Control Type :  View
    • Standalone : Override
    • Target scope :  “/” which means all Sites and Sub-sites will be applied. If we have a site collection “/sites/HR”, then we need to use “/Sites/HR” instead. 

  • Once we are done with above steps, add a doc library in the page and edit the web part & add the js file path (~SiteCollection/_catalogs/masterpage/FolderNavigation.js) in the js link box under the Miscellaneous section like below image.
  • Finally hit OK button and your Navigation for Document Library ready.

 

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

Avatar photo
Sujoy Dasgupta
15 years of technology industry experience in Microsoft technology. Strong technical experience in SharePoint Online, SharePoint Classic & Modern, SPFx, Power BI, PowerApps, Power Automate, O365 tools, SharePoint Admin Center, SharePoint On-premise development, Asp.Net web application, Sharegate migration tool & Nintex workflow. .

One thought on “Navigation for SharePoint 2013 Document Library

  1. If we have multiple document libraries on same page, navigation is overriding with one document library navigation with other document library navigation, can any one tell solution for this issue.

    Regards
    Srinivas Are

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="">