Configuring SPHierarchyDataSourceControl to show all sites from Root of Site Collection
Posted by
Venkat Varkala
Labels:
SharePoint
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.
Subscribe to:
Post Comments (Atom)

Post a Comment