Thursday, March 16, 2006

 

Sharepoint and portal listings

Aaahh, portal listings. I´ve written a custom search on the 'portal listings' lists. In the results page i wanted to show the associated image. This wasn't as easy as i thought! Finally i found how i can access this list through code :

using Microsoft.SharePoint.Portal.SiteData;

Microsoft.Area currentArea = AreaManager.GetArea(PortalContext.Current, rootWeb.ID);
foreach(AreaListing al in currentArea.Listings)
{
//Do something
}

Hope this can help anyone!

steven

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?