Welcome to Office & 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 and deployment capabilities with this free SharePoint CD. You’ve Deployed SharePoint…Now What?This one-day free online conference delivers the technical knowledge needed to kick MOSS up a notch. In one information-packed day, independent SharePoint experts will present practical, real-world information and provide take-away, ready-to-use solutions Ease Your Scripting Pains with the Flexibility of PowerShell!Join MVP Paul Robichaux on December 11, 2008 at 11:00 AM EDT as he equips you with PowerShell basics in 3 introductory lessons, each followed by a live Q&A session—all on your own computer! Protecting Sharepoint with Double-Take for Windows 5.0Providing SharePoint recoverability is a two step process. Learn those steps now. Vendor protection solutions for SharePoint are incomplete at worst and unreliable at best. So what’s an Administrator to do? Read More… Maximize Your SharePoint Investment This web seminar discusses how true bi-directional replication of SharePoint content from one server to another enables branch offices to maintain access to current SharePoint content.