feedburner

Subscribe

View Venkat Varkala\

Configuring SPHierarchyDataSourceControl to show all sites from Root of Site Collection

Labels:

SPTreeView Control by default shows all the lists, document libraries & Sites in the Current Context (Web), if you want to show only the Sites from the Root of your sitecollection. Open your master page using SharePoint Designer and find "SPHierarchyDataSourceControl" and update it to look like below element.

<SharePoint:SPHierarchyDataSourceControl runat="server" id="TreeViewDataSource"  IncludeDiscussionFolders="false" ShowDocLibChildren="false" ShowFolderChildren="false" ShowListChildren="false" RootWebId="INSERT YOUR ROOT WEB GUID HERE" />
 Make sure that you remove "RootContextObject" attribute, RootContextObject property value overrides "RootWebId" property.

0 comments:

Post a Comment