Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to use the tree view on the left side, but I don't want it so show some of the document libraries such as Site Assets and Style Library - they need to be on the site, but users don't need to see them.

Is there any way to control what shows up in the tree view?

This is similar to Hide items in Sharepoint Treeview but not a duplicate.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Go into Sharepoint Designer and select your list(s). Tick the check box for Hide From Browser. This will remove it from all aspects of the UI, including the tree view.

enter image description here

share|improve this answer
Thank you, that's exactly what I was looking for. –  Grant Feb 17 '13 at 1:28
This will remove it from the Treeview as well as "site content" :( –  patchie Oct 23 at 15:39
That's what I said, it hides it from all aspects of the UI. –  PirateEric Oct 26 at 1:51

You can create your own custom data provider for the treeview control and then use something like the additionalpagehead delegate control to instantiate it and set it as the datasource for the treeview.

Here is an example of creating a custom site map provider: http://www.codeproject.com/Articles/96461/Building-a-Custom-Site-Map-Provider

Here is an example of using the additionalpagehead control: http://www.sharepointjohn.com/sharepoint-2010-programmatically-add-javascript-meta-tags-and-css-styles-to-the-header-of-every-page/

And all you'd need to do with the TreeView control itself is:

WebTreeView.DataSourceID = null;
WebTreeView.DataSource = yourcustomsource;
share|improve this answer
John, please don't post duplicate answers - better to flag the questions as duplicates. I have closed the other question as a duplicate so we're all good now. Thanks. –  SPDoctor Feb 16 '13 at 14:26

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.