SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to add more levels in Content -> Levels to show in the OOTB Table of Contents web part? Could this be edited in some file or do I need to build a custom web part in order to get more levels displayed?

share|improve this question
up vote 0 down vote accepted

You could try to export the webpart, edit the property 'levelToShow ( <property name="LevelsToShow" type="int">10</property>) and import the webpart again.

You probably want to update the XSL-stylesheet as well, to accomadate for the extra levels.

(Don't change the settings with 'edit webpart' afterwards, you will overwrite the levelsToShow value.)

share|improve this answer
Thanks! I initially had problems with exporting the web part (the option didn't show up) but after doing a IISRESET it showed and it worked out just as you suggested. – K.W Oct 10 '11 at 7:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.