{"id":893,"date":"2009-11-08T20:02:26","date_gmt":"2009-11-08T18:02:26","guid":{"rendered":"https:\/\/www.networknet.nl\/apps\/wp\/archives\/893"},"modified":"2012-03-30T12:58:51","modified_gmt":"2012-03-30T10:58:51","slug":"sharepoint-create-table-of-content-page-based-on-a-document-library","status":"publish","type":"post","link":"https:\/\/www.networknet.nl\/apps\/wp\/archives\/893","title":{"rendered":"Sharepoint: Create table of content page based on a Document Library"},"content":{"rendered":"<h2>How to create table of content (TOC) of a SharePoint document library?<\/h2>\n<p>Let&#8217;s take a SharePoint \u201cDocument Library\u201d which has several different sub folders. For example the structure below:<\/p>\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb.png\" alt=\"image\" width=\"302\" height=\"198\" border=\"0\" \/><\/a><\/p>\n<p>Within these sub folders there are several documents stored. For example within the \u201cForm\u201d sub folder where documents are stored based on word or PDF file types. All sub folders within the \u201cInformation Technology\u201d library hold several documents. The challenge I had is to create a table of content page which showed all those sub folders with their document content.<\/p>\n<h3>Use out of the box SharePoint blank web part page<\/h3>\n<p>I created a new page based on \u201cBlank Web Part Page\u201d and add the \u201cInformation Technology\u201d document library which showed all the folders.<\/p>\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_3.png\" alt=\"image\" width=\"594\" height=\"207\" border=\"0\" \/><\/a><\/p>\n<p>I could change current view and change the \u201cFolders\u201d option to show all items without folders but still this solution didn\u2019t help. I wanted to filter individual \u201cDocument Library\u201d sub folders and their content.<\/p>\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_4.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_4.png\" alt=\"image\" width=\"561\" height=\"109\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_5.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_5.png\" alt=\"image\" width=\"561\" height=\"138\" border=\"0\" \/><\/a><\/p>\n<p>I tried all possible options with this \u201cInformation Technology\u201d webpart to filter for a sub folder but nothing which helped me. I learned from Laura Rogers <a href=\"http:\/\/www.endusersharepoint.com\/2009\/05\/13\/data-view-web-part-folders-part-2\/#iframe\" target=\"_blank\">here<\/a> how to insert a \u201cData View Web Part\u201d and filter the content within a \u201cDocument Library\u201d.<\/p>\n<p>Some steps to achieve this:<\/p>\n<ul>\n<li>Create new ASPX file and attach your masterpage (Format menu \u2013&gt; Master Page \u2013&gt; Attach Master Page..)<\/li>\n<li>Create new custom content for PlaceHolderMain\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_6.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_6.png\" alt=\"image\" width=\"504\" height=\"85\" border=\"0\" \/><\/a><\/li>\n<li>Drag your \u201cDocument Library\u201d in the content area you want to show\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_7.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_7.png\" alt=\"image\" width=\"504\" height=\"85\" border=\"0\" \/><\/a><\/li>\n<li>Make sure you are in the table and in the task pane go to \u201cData Source Details\u201d and click the Current Data Source link.<\/li>\n<\/ul>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_8.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_8.png\" alt=\"image\" width=\"504\" height=\"214\" border=\"0\" \/><\/a><\/p>\n<ul>\n<li>Change the scope level to RecursiveAll <br \/><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_9.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_9.png\" alt=\"image\" width=\"434\" height=\"187\" border=\"0\" \/><\/a><\/li>\n<li>We are done now and all documents will be shown stored in this \u201cDocument Library\u201d. Now we can filter the path for specific Sharepoint sub folders. Click on the chevron of the data view and click Filter.\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_10.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_10.png\" alt=\"image\" width=\"347\" height=\"211\" border=\"0\" \/><\/a><\/li>\n<li>The Filter Criteria window is shown and you can set all different type of criteria. Enter the sub folder you want to show. In my case the Form folder.\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_11.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_11.png\" alt=\"image\" width=\"442\" height=\"262\" border=\"0\" \/><\/a><\/li>\n<li>Save the ASPX file and check it out.<\/li>\n<\/ul>\n<p>The result:<\/p>\n<p><a href=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_12.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/SharepointCreatetableofcontentpagebasedo_FCE6\/image_thumb_12.png\" alt=\"image\" width=\"627\" height=\"144\" border=\"0\" \/><\/a><\/p>\n<p>Hopefully by now you get the picture how to customize the data view webpart. You can change all columns and insert hyperlinks were needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to create table of content (TOC) of a SharePoint document library? Let&#8217;s take a SharePoint \u201cDocument Library\u201d which has several different sub folders. For example the structure below: Within these sub folders there are several documents stored. For example within the \u201cForm\u201d sub folder where documents are stored based on word or PDF file types. All sub folders within the \u201cInformation Technology\u201d library hold several documents. The challenge I had is to create a table of content page which showed all those sub folders with their document content. Use out of the box SharePoint blank web part page I created a new page based on \u201cBlank Web Part Page\u201d and add the \u201cInformation Technology\u201d document library which showed all the folders. I could change current view and change the \u201cFolders\u201d option to show all items without folders but still this solution didn\u2019t help. I wanted to filter individual \u201cDocument Library\u201d sub folders and their content. I tried all possible options with this \u201cInformation Technology\u201d webpart to filter for a sub folder but nothing which helped me. I learned from Laura Rogers here how to insert a \u201cData View Web Part\u201d and filter the content within a \u201cDocument Library\u201d. Some steps to achieve this: Create new ASPX file and attach your masterpage (Format menu \u2013&gt; Master Page \u2013&gt; Attach Master Page..) Create new custom content for PlaceHolderMain Drag your \u201cDocument Library\u201d in the content area you want to show Make sure you are in the table and in the task [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,534],"tags":[553,147,535,554],"class_list":["post-893","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-sharepoint-2007","tag-document-library","tag-howto","tag-sharepoint","tag-subfolders"],"_links":{"self":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts\/893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/comments?post=893"}],"version-history":[{"count":4,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts\/893\/revisions"}],"predecessor-version":[{"id":2207,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts\/893\/revisions\/2207"}],"wp:attachment":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/media?parent=893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/categories?post=893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/tags?post=893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}