Welcome to Office and SharePoint Pro Sign in | Join | Help
in Search

SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%      FREE Email Newsletters Vista UPDATE, Windows IT Pro UPDATE & More

Listing Sites, Workspaces, Lists and Libraries in a Webpart

Last post 04-21-2008, 11:55 PM by gokulin. 3 replies.
Sort Posts: Previous Next
  •  04-16-2008, 1:41 AM 29536

    Listing Sites, Workspaces, Lists and Libraries in a Webpart

    Hi Everyone,

    I have a client requirement to list all the sites, workspaces, lists and libraries of the current logged in user listed in a web part as

    Sites

    Site 1

    Site 2

    Lists

    List 1

    List 2

    Document Libraries

    Doc Lib 1

    Doc Lib 2

     Workspaces

    Doc Workspace 1

    Doc Workspace 2

     I tried out by directly accessing the Sharepoint Database and was able to successfully display just the Site Names - but couldn't distinguish between Document Workspace or Site.

     Any idea on how to do this?

    Need URGENT help on this....

    Waiting for your valuable inputs.... 

  •  04-16-2008, 9:05 PM 29541 in reply to 29536

    Re: Listing Sites, Workspaces, Lists and Libraries in a Webpart

    Have you tried to use WebTemplate or WebTemplateId of SPWeb ?

     

    Regards,

    Riwut Libinuko
    -http://www.plasmedia.com

  •  04-18-2008, 12:51 AM 29556 in reply to 29541

    Re: Listing Sites, Workspaces, Lists and Libraries in a Webpart

    Yes Sir.... Thanks for your inputs....

      It gives values such as STS, CENTRALADMIN, MPS, BLOG, etc.....

    But what does these exactly mean?? how can we say if a site is a document workspace or document library or a list??

    Moreover I was able to access the WebTemplate property of the current site by using SPContext.Current.Web. But how can I walk through every link / site / sub site in the Sharepoint from the root to find all the sites, lists, libraries and workspaces the current user has permission?? 

  •  04-21-2008, 11:55 PM 29565 in reply to 29556

    Re: Listing Sites, Workspaces, Lists and Libraries in a Webpart

    Anyone to help me out?? :(
View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Order Your Fundamentals CD Today!Get up to speed quickly and learn how to uncover rich information management capabilities with this free SharePoint CD. IT ConnectionsDive into the new Microsoft platforms and products you implement and support with the experts from Microsoft, TechNet Magazine, Windows ITPro and industry gurus. There are 70+ sessions and interactive panels with networking opportunities. Attention User Groups & User Group Leaders...Announcing the eNews Generator—a FREE HTML e-newsletter builder for user group leaders. Build your HTML and text e-newsletters in minutes. And add Windows IT Pro & SQL Server Mag articles alongside your own message!. Get Specialized SharePoint Training!SharePoint MVPs Dan Holme, Michael Noel, and Andrew Connell share their perspective and expertise in these exclusive eLearning seminars. One Event for developers and one for IT pros. Choose the one that fits your needs! Get SQL Server 2008 at SharePoint ConnectionsDon’t miss SharePoint Connections, the premier event for Microsoft IT Professionals, in Las Vegas, November 10-13. Every attendee will receive a copy of SQL Server 2008 Standard Edition with one CAL.