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

Maximize Your SharePoint Investment: Get Your Data MovingJoin us as we take a look at the complex business of securing, accessing and managing vast amounts of information in a global network and various ways to get your data moving. 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. Free Technology Resource Directory ListingPost your free listing in this comprehensive directory for IT and developer professionals, powered by Windows IT Pro. But hurry! Deadline ends Oct. 9. SharePoint Conections event returns to Las Vegas Nov 10 - 13Connections returns to Las Vegas for this exciting event where each attendee will receive SQL Server 2008 standard with 1 CAL. It is co-located with Microsoft ASP.NET, SQL Server and Windows Connections with over 250 in-depth sessions. 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!