Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Adding items to site list

  Asked By: Alberto    Date: Apr 10    Category: Sharepoint    Views: 1006

We are writing code to make top level sites in SharePoint Portal.
But after creation of site thru code the newly created site does not
appear in the sites list in the sites area.
I want to know if there is any API available to do this??



2 Answers Found

Answer #1    Answered By: Sylvia Barrett     Answered On: Apr 10

The "Sites" area  has a list  with links to Wss Toplevel sites.
This list is only updated when you create Wss from this "Sites" area.

But you can get hold on the list this way.

Area sitesArea = AreaManager.GetSystemAreaGuid(

SPList sitesList = sitesArea.web.Lists["sites"];

If you want to add your Wss Toplevel site  to the index server, use the
SuggestDeepCrawl method.

And if you dont have the PortalContext.Current avialable then use the
TopologyManager class to get hold on the PortalSite and then get a
PortalContext from that.

Answer #2    Answered By: Cody Hinton     Answered On: Apr 10

I will try this out and let u know about
the results.

Didn't find what you were looking for? Find more on Adding items to site list Or get search suggestion and latest updates.