8

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.

4 Answers 4

4

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

6
  • @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
    Commented May 5, 2011 at 1:45
  • The Data View Web Part can only be added through SharePoint Designer.
    – Laurie
    Commented May 5, 2011 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. Commented May 5, 2011 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. Commented May 5, 2011 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. Commented May 5, 2011 at 12:17
1

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.

http://sharepointnavigation.codeplex.com/releases/view/9462

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

1
  • 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
    Commented May 4, 2011 at 21:09
0

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:

http://www.wssdemo.com/Pages/webparts.aspx

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.

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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