Table of Content Web Part: Slightly different in SharePoint 2013 / Online

Table of Content Web Part: Slightly different in SharePoint 2013 / Online

The Table of Contents web part has been part of SharePoint's make-up for a while now. It is useful function that is normally used to display a sitemap or to provide navigation for a sub site. "The Table of Contents Web Part has three main sections in the configuration pane:"
  1. Content: This is where you configure what part of "site hierarchy the Web Part displays. Enter the path to the page where you want to Table of Contents to begin in the Start From field. You can choose how many levels to display in the Table of Contents by using the Levels to Show drop-down list.
  2. Presentation: This section controls how the items display. You can choose to display everything in a single column or multiple columns and select how the header is styled by selecting an option from the Header Style drop-down list.
  3. Organization: Decide how you want the items sorted by selecting either the Sort Contents as They Are Sorted in Navigation or the Sort Contents Using the Following Settings radio button. If you choose the latter option, select applicable options from the Sort Sites By, Sort Pages By, and Sort Direction drop-down lists." [www.dummies.com]
For the most part, this functionality has remained exactly the same throughout the versions. However looking at the configuration options in SharePoint 2013 reveals one slight omission: the Display Columns setting. This setting allowed you to specify the number of columns that the content was displayed in. However, in SharePoint 2013 / SharePoint online, the default column number is one. What this can potentially result in is a web part that displays its content in a very elongated, vertical manner. To get around this, you can use the linked PowerShell Script to set the display column count. Please note that 7 is the maximum column count that you can use. The variables that you will need to amend are:
  • $web: Set this to the site level with the Table of Contents Web Part
  • $pages: Set the page name here that has the Table of Contents Web Part

Please note that the page itself must be checked in and published. The script can be downloaded from the TechNet Gallery here.
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Thanks for share.

  • Hey Steven,

    Glad you wrote this article and added it to the monthly technet wiki article. I realized the suttle difference in the Table Of Contents web part as well. As a side note, I enjoy the friendly rivalry in the technet guru competitions.

    Keep up the good work!

  • Hey Dan,

    Totally agreed.  The friendly rivalry is a great part of the Competition.  Outside of my CodePlex coverage, I'm not sure I could write stuff as detailed as your own, but everyone wins right!

    On the ToC, I thought it was an interesting ommission that others might need to be aware of.  I need to tidy this article up a bit but at the foundation is here at least.

    Keep up the good work too!

  • Nice post and one of the best, inspiring lines 'The friendly rivalry is a great part of the Competition'

    Good going guys and Thanks so much, Dan & Steven!

  • Yes - everyone wins! Thank you all for your great content! This helps out the community so much!

  • Bonjour,

    Voir les bonnes pratiques de DEV Sharepoint

    sharepointonhands.blogspot.com

    -----------------

    Merci

  • Bonjour,

    Voir les bonnes pratiques de DEV Sharepoint

    sharepointonhands.blogspot.com

    -----------------

    Merci

Page 1 of 1 (7 items)