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

I'm experimenting with providing maximum functionality without writing code.

The sharepoint site collection has one sub-site called "Demo". "Demo" has one document library called "Testing".

I've enabled Tree View in "Look-and-Feel" and can see the site navigation in the Quick Launch. The tree-view thus created uses "SPHierarchyDataSourceControl" for the site data. I want to modify this tree view so that it only displays the Document Library "Testing" with its sub-folders.

As mentioned earlier, I do not want to use third-party webparts or write code. I want to edit only the master page to achieve the output.

Is it possible?

share|improve this question
up vote 1 down vote accepted

I think you can set the RootContext of the SPHierarchyDataSourceControl to List instead of Web, and also you can set the RootListId to the guid of your list (an easy way to get the guid from a list is to look in the URL when you are in document properties:

share|improve this answer
I haven't been able to test this. But I think you are right. – Anurag Jan 31 '11 at 7:18
Hi Anders, can I show the same as a web part ? Means I don't want the tree structure to appear in the left hand quick view section, Can I show it on the body? though +1 for this great idea :) – Jithu Nov 24 '11 at 9:59
Its a control, so if you need it in a webpart you will need to include the control in a webpart, for example a visual web part – Anders Rask Nov 24 '11 at 17:39
There is no "RootListId" in the page. Is it required to be created and placed somewhere close? – Regmi Dec 1 '11 at 1:44

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.