SharePoint 2013 - Wiki page Table of Contents
I recently completed some rather lengthy documentation within a few SharePoint wiki pages. It became clear to me that I would need a table of contents, and SharePoint didn't have an out of the box solution specifically for wiki pages. What I wanted was something like a Word document's Navigation pane, which gets generated dynamically based on the document's headings. I also wanted the ability to use this quickly and easily multiple times, without having to utilize SharePoint Designer.
I searched online, and couldn't find exactly what I needed. So, I decided to build my own. I borrowed ideas from two blog posts, a Table of Contents and Build a Webpart example. I wanted my ToC to be in the form of a list. I also wanted the ToC to only have items from the left most content area of the wiki. My thought was the ToC would be on the right sidebar, along with some other content - like a Note Board or something.
Here is the solution I came up with:
- Create the following three files.
- Change 'team-site' to match your site name.
- Save this url, you will need it later.
- Make sure there are multiple heading on the page.
Post a Comment