sitecollection

How do I programatically set the SharePoint's site collections Search Center property?

I have a site collection and I want to set the search center value to be the same as another site collection. The site collection is created in code, so I need to be able to set the property after the site collection has been created. How can I do this programatically? ...

Changing SharePoint Site Collection Title

I need to change the title of a site collection in SharePoint (MOSS 2007). I found one post saying it can be done in SharePoint Designer, but I wasn't seeing the specified menus, and haven't been able to find it anywhere else. I'm assuming I can do it programmatically if necessary, but I'd like to think they made it easier than that (sil...

Issus deleting a site collection

Hi, I'm currently doing some test where I try to delete a site collection programmatically. Thereby I realized some strange behavior by SharePoint. I used the following code to test the site collection deletion. private static void DeleteSiteCollection(string urlSiteToDelete) { SPSecurity.RunWithElevatedPrivileges(delegate() ...

WSS 3.0 Multiple Domains

We have been running WSS 3.0 for our intranet. We are going to be moving our internet site to WSS 3.0. The vast majority of people will access the new internet site anonymously. My question is in regards to the few people who will need to authenticate so that they can access intranet material from the internet. We are going to host the...

Setting author field in SPListItem won't persist

I am trying to copy an SPListItem (with file) from one site collection to another. I do this by creating the file like this: var archiveFile = newsArchive.Lists[listName].RootFolder.Files.Add(originalItem.File.Name, originalItem.File.OpenBinary()); var archiveItem = archiveFile.Item; through a utility method I wrote i then set all fie...

Sitecollection Overview Page

I have the following situation: MOSS 2007 Server Environment A -> Intranet MOSS 2007 Server Environment B -> Collaboration Environment (approx. 150 site collections for various issues) Both environments are on different infrastructures but we use the same Active Directory and the same groups. Now we would like to implement the follo...

SharePoint lookup column across site-collection boundary

The basic situation is that I have a list of company contacts that exist in one site that I would like to share. The contacts are referenced from a list within that site, and I would also like to be able to reference them from a list in another site collection. Lookup columns can only lookup values from a list within a site, but this is ...

Automating Site Collection Creation in SharePoint

UPDATE I can now perform succesful UI impersonation. This was an issue with the code I was using and after viewing Jay Nathan's article I have reverted to his code and all is working great. In response to a comment this is the code I am using to create a new site collection: Dim newSite As SPSite = webApp.Sites.Add( _ txtWebApp....

Can you open an SPSite object while being within a different site collection?

I'm working on creating a common navigation experience across two site collections in MOSS 2007. I've looked around for various solutions and haven't found anything that fits. Our navigation is dynamic and driven by a number of factors, including audience targeting. Most of what I've found relates to having static XML and that just wo...

Programmatically tell whether a webpart that has been deployed is a native one that ships with MOSS, or one that was custom developed?

I have a SharePoint 2007 MOSS instance, and I'm on a fact-finding mission. There have been multiple developers, developing multiple webparts and deploying them (using VS2005/2008 SharePoint Extensions). I thought maybe I could look at the fields in the "Web Part Gallery" list in my site, and look by "Modified by", but it looks like a de...

Sharepoint user can view site collections he is not a member of

Hi there ,as i understand sitecollection security ,member of a given sitecollection can not view another site collection where he has no membership ,my problem is that any user from a given site collection can view other site collection easily ,how is that ? by the way ,this user is not an administrator ,he is a domain user ,with approve...

sharepoint admin does not have full control

Hi everyone, can anyone help me out here, my sharepoint 2010 admin does not have full control permission on the site collection for some reason, does anyone know how to fix that ? Thank you. ...

How can I import a Site Collection to another host?

I am trying to export the content from a staging server and import it into a development machine. I've tried to do this with Backup-SPSite -Identity http://staging -Path c:/export.bin on staging and Restore-SPSite -Identity http://devmachine -Path c:/export.bin -Force on development, but after I do this, some assets (e.g. images in webp...

SharePoint 2010: efficient union query across site collections?

In SharePoint 2010, I would like to create a list in one SiteCollection that queries data from several other SiteCollections that have common fields: Is this possible, and if so - can it be done efficiently? The current proposed solutions involves setting up EventReceivers on each of the SiteCollections that we want to query, and upd...