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();


 

Comments (12)
  1. MSDN Archive says:
  2. MSDN Archive says:
  3. MSDN Archive says:
  4. MSDN Archive says:
  5. MSDN Archive says:
  6. MSDN Archive says:
  7. MSDN Archive says:
  8. MSDN Archive says:
  9. MSDN Archive says:
  10. cherry says:

    British reporters are known for doing almost anything to get a Mulberry Bags. But reports that a newspaper secretly listened to telephone messages of murdered schoolgirls and other private citizens have produced Mulberry Handbags and anger.

    On Friday, British police arrested Andy Coulson, former editor of Mulberry Bag Britain's best-selling newspaper, News of Mulberry Outlet the World. The investigation led him to Mulberry UK Sale resign in January as communications director to Prime Minister David Cameron.

    The arrest came in a widening investigation of Mulberry UK telephone hacking. Other accusations include paying police for mulberry shoulder bags information on stories. The Reuters news agency reported that Mr. Coulson was released on Mulberry Bag UK until a date in October.

    Prime Minister Cameron promised Men's Mulberry Bags Friday that a judge will lead a full public inquiry into Women's Mulberry Bags the case after police complete their investigation.

    DAVID CAMERON: "Murder victims, terrorist victims, families who have lost loved ones, sometimes defending our country, that these people could have had their phones hacked into, in order to generate stories for Mulberry Bags  Mulberry Handbags  Mulberry Bag   Mulberry Outlet  Mulberry UK  mulberry bayswater bag  Mulberry Alexa Bag, is simply disgusting."

Comments are closed.

Skip to main content