Networknet.nl Blog

Stay Connected

Archive for the ‘subfolders’ tag

Sharepoint: Create table of content page based on a Document Library

without comments

We have a Sharepoint “Document Library” which has several different subfolders. E.g.

image

Within these subfolders there are several documents stored. For example within the “Form” subfolder where form documents are stored based on word or PDF files. All those subfolders within the “Information Technology” document folder hold several documents. The challenge I had is to create a table of content page which showed all those subfolders with their document content. I created a new page based on “Blank Web Part Page” and add the “Information Technology” document library which showed all the folders.

image

I could change current view and change the “Folders” option to show all items without folders but still this solution didn’t help. I wanted to filter individual “Document Library” subfolders and their content.

image

image

I tried all possible options with this “Information Technology” webpart to filter for a subfolder but nothing which helped me. Than I learned from Laura Rogers here how to insert a “Data View Web Part” and filter the content within a “Document Library”.

Some steps to achieve this:

  • Create new ASPX file and attach your masterpage (Format menu –> Master Page –> Attach Master Page..)
  • Create new custom content for PlaceHolderMain

    image 

  • Drag your “Document Library” in the content area you want to show

    image 

  • Make sure you are in the table and in the taskpane go to “Data Source Details” and click the Current Data Source link.

          image

  • Change the scope level to RecursiveAll
    image
  • We are done now and all documents will be shown stored in this “Document Library”. Now we can filter the path for specific Sharepoint subfolders. Click on the chevron of the data view and click Filter.

    image

  • The Filter Criteria window is shown and you can set all different type of criteria. Enter the subfolder you want to show. In my case the Form folder.

    image 

  • Save the ASPX file and check it out.

The result:

image

Hopefully by now you get the picture how to customize the data view webpart. You can change all columns and insert hyperlinks were needed.

Written by Ivan Versluis

November 8th, 2009 at 8:02 pm