Stay Connected
Sharepoint: Create table of content page based on a Document Library
We have a Sharepoint “Document Library” which has several different subfolders. E.g.
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.
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.
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
- Drag your “Document Library” in the content area you want to show
- Make sure you are in the table and in the taskpane go to “Data Source Details” and click the Current Data Source link.
- Change the scope level to RecursiveAll

- 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.
- 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.
- Save the ASPX file and check it out.
The result:
Hopefully by now you get the picture how to customize the data view webpart. You can change all columns and insert hyperlinks were needed.
| Print article | This entry was posted by Ivan Versluis on November 8, 2009 at 8:02 pm, and is filed under Microsoft, Sharepoint 2007. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

