Welcome to MSDN Blogs Sign in | Join | Help

Sharepoint 2003 : How to add links to the "Sites I have added" listing at the portal

The following is the sample code snippet to add links to the Sites listing. Unfortunatly this is not documented in the Sharepoint SDK.

 

//Get the Site               

SPSite site = new SPSite(<URL>);

 

//Get the portal context

PortalContext context = PortalApplication.GetContext(site.ID);

 

//Get the guid

Guid guid = AreaManager.GetSystemAreaGuid(context, SystemArea.SiteRegistry);

 

//Get the area

Area area = AreaManager.GetArea(context, guid);

 

//Get the area listing collection

AreaListingCollection objALC =  area.Listings; 

 

//Add the link to the listing

AreaListing objAL =   objALC.AddListing("<Title>","<Description>",ListingType.Site, “<URL>” ,null);                

objAL.Update();

 

Published Wednesday, May 31, 2006 9:40 PM by Karthikeyan
Filed under:

Comments

# http://google.fr/search?hl=fr&hs=hay&client=firefox-a&rls=org.mozilla:fr:official&sa=x&oi=spell&resnum=0&ct=result&cd=1&q=sharepoint+getarea+with+guid&spell=1

Wednesday, December 13, 2006 8:12 AM by TrackBack

# http://search.live.com/results.aspx?q=listing+sharepoint+2003+sites&mkt=en-us&form=qbre

Wednesday, December 13, 2006 8:12 AM by TrackBack

# http://google.com/search?hl=en&q=sharepoint+adding+links

Wednesday, December 13, 2006 8:12 AM by TrackBack

# http://google.be/search?hl=nl&q=sharepoint+++add+links&meta=

Wednesday, December 13, 2006 8:12 AM by TrackBack

# http://google.es/search?hl=es&q=sharepoint+adding+sites+to+areas&meta=

Wednesday, December 13, 2006 8:12 AM by TrackBack

# http://google.com/search?sourceid=navclient&hl=da&ie=utf-8&rls=gglg,gglg:2005-39,gglg:da&q=sharepoint+getarea+from+guid

Wednesday, December 13, 2006 8:13 AM by TrackBack

# http://google.ca/search?hl=en&q=add+sites+to+sharepoint&btng=google+search&meta=

Wednesday, December 13, 2006 8:13 AM by TrackBack

# http://google.com/search?hl=en&q=sharepoint+portal+sdk+how+to+get+area+collection

Wednesday, December 13, 2006 8:13 AM by TrackBack

# http://google.co.nz/search?q=sport+picks+sharepoint+portal&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-us:official

Wednesday, December 13, 2006 8:13 AM by TrackBack

# SharePoint Code Collection &laquo; DOT NET SPIDER

Friday, July 13, 2007 3:02 PM by SharePoint Code Collection « DOT NET SPIDER

# Karthick s Blog Sharepoint 2003 How to add links to the Sites I | Toe Nail Fungus

Anonymous comments are disabled
 
Page view tracker