I am looking for a way (via web part?) to display all sub-sites of a site collection with output similar to output you see under "Sites & Workspaces" (under All Site Content)...

I know there is a way to use SOAP webservice as a data source and then add it to a web page via SP Designer, but I was hoping there is a web part that is a bit more customizable...

I'm using SharePoint Foundation 2010.


A Data View Web Part (DVWP) using either the Webs Web Service or DataSourceMode="Webs" is a great way to go. Easy to customize and style. If you spent most of a day looking for something, then you could have already been done!

//EDIT As Laurie points out, you generally build and style a DVWP using SharePoint Designer. DVWPs have been available in every version of SharePoint going back to 2003.

You add a DVWP to the page using Insert / Data View on the ribbon in SharePoint Designer 2010. //EDIT

|improve this answer|||||
  • @Marc D Anderson - Marc, I saw referneces about DVWP while looking on the web, but is this web part available on 2010 SharePoint Foundation? I certainly can't see it anywhere (not in Gallery either)... – zam6ak May 5 '11 at 1:45
  • The Data View Web Part can only be added through SharePoint Designer. – Laurie May 5 '11 at 2:59
  • Laurie, why? DataViewWebPart is public. Can you give us some proof links? I'm sure you can add any of standard webparts using either XML elements with AllUsersWebPart or sharepoint object model and SPLimitedWebPartManager. – Andrey Markeev May 5 '11 at 9:49
  • 1
    I think Laurie meant that DVWPs can only be created in SharePoint Designer (well, and probably in VS too, IDK, I don't use the product). Once created, the web part can be exported and imported to other pages via the UI. – Eric Alexander May 5 '11 at 12:15
  • And the good thing about using a DWVP and the web service, it will automatically security trim the results based on what the current logged in user has access to. – Eric Alexander May 5 '11 at 12:17

Here is a web part for WSS 3.0. From the screenshot, it looks like the author just iterates through each SPWeb and writes out a link using the subsite.Url and subsite.Title.


Using Webs.asmx via SharePoint Designer, as you suggested is probably a better option.

|improve this answer|||||
  • Thanks, I have tried this and got a bunch of errors...I actually spent most of the day yesterday combing Internet (especially CodePlex) looking for a suitable web part :)... – zam6ak May 4 '11 at 21:09

Activating the publishing features will allow you to use a webpart called "Table of Contents". Publishing features need SharePoint Standard Edition. This will let you display the contents below the current site in many different ways. A list of webparts can be found here:


But activating publishing features comes with some restrictions. For instance, the site can not be saved as a template, so think twice before activating on any random site.

|improve this answer|||||
  • @GeekDotNet - is this web part available on SP 2010 Foundation? I need something that will work with Foundation.... – zam6ak May 4 '11 at 20:52
  • No it isn't, the table of contents is part of the publishing infrastructure which Foundations does not have. – Eric Alexander May 4 '11 at 20:54
  • @PirateEric Thanks...I need web part/solution for SPF... – zam6ak May 4 '11 at 21:00

We have a legacy web part from Coras I believe called Site Workspace Viewer that does this. I believe it was originally created for SPS 2003 and it still works in 2007. I don't know if it would work in 2010 (we haven't started upgrade testing yet). Unfortunately I can't find much reference to the product anymore, it was purchased and installed before I came into this position.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.