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'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

1 Answer 1

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:

http://<yoursite>/<yourweb>/_layouts/listedit.aspx?List=%7B0362FA23%2D868B%2D4B02%2DA8DB%2D8EA3507936D5%7D
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

 
discard

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.