Updated statement from Microsoft on custom site definitions

http://support.microsoft.com/Default.aspx?id=898631 Here’s the meat, I have highlighted the key points: Supported scenarios When you work with custom site definitions or custom area definitions, the following scenarios are supported: • To create a custom site definition or a custom area definition, you copy an existing site definition or an existing area definition, and then you rename…

1

How to reprovision a document library programatically (simple example)

I have gotten a lot of questions recently around the topic of reprovisioning.  I wanted to show a simple example to get folks started.  Reprovisioning will be a topic of interest during the up and comming site definitions posts that I’m working on putting together.  I am still holding on those for now, but decided that…

1

Programatically remove Manager information from Portal Profiles

I’ve seen a few requests recently where folks want to get rid of the Manager/Direct Reports functionality within Portal.  I suspect the most common reason for this that folks are making their sites externally available and dont want people outside of the company viewing the entire reporting structure.  Removing this functionality would entail removing the mapping from…

2

SharePoint Portal audience compilation testing code sample

Today is fun with Audiences day!  Audience compilation is a codebase that I am very familiar with.  John West (http://blogs.msdn.com/johnwe/) recently posted that if you’re having audience compilation issues to make sure you had the latest Portal rollup applied.  I’ll echo that statement here and note that in reality you simply have to have Microsoft.SharePoint.Portal.dll beyond…

0

Some SharePoint Portal OM basic samples

Refer to http://blogs.msdn.com/dwinter/archive/2005/03/01/383306.aspx (Portal OM) and http://blogs.msdn.com/dwinter/archive/2005/02/15/373076.aspx (WSS OM) for setup if you are not familiar with creating a SharePoint OM application.We’ll start with a C# Windows Form application.  I am using Microsoft.SharePoint, Microsoft.SharePoint.Portal, Microsoft.SharePoint.Portal.Alerts, Microsft.SharePoint.Portal.UserProfiles, Microsoft.SharePoint.Portal.Topology in these samples.  Use the same kind of setup in your designer that I showed in the initial Portal OM post. To…

0

Creating an application using the SharePoint Portal Object Model — accessing PortalSite

Just as with the WSS OM, I will start out simple here.  I am going to illustrate three different ways you might arrive at a PortalSite object.  PortalSite could be considered to be your starting point in a SPS OM application.  From PortalSite you can establish PortalContext which is required for many OM calls.  As…

1

WSS / SharePoint Portal OM topic requests?

I’ve got a slew of topics that I’ve already got brewing in my head for the next two weeks… This comming week I’ll be talking about the SharePoint Portal OM via code samples and work into it in a similar fashion to how I introduced the WSS OM already.  I then will be introducing customization…

4

Fun with TemplateIDs in SharePoint

Today I’m taking a slight break from direct coding examples to introduce a simple topic which will be useful later when I write about customizations in SharePoint.  Don’t fret though, I’ll be writing about Microsoft.SharePoint.Portal next week for those of you just reading this for code. In SharePoint, both lists and sites have the capability…

6

Using SharePoint Web Services to submit a simple search request

Refer to http://blogs.msdn.com/dwinter/archive/2005/02/15/373076.aspx for setup if you are not familiar with creating a SharePoint OM application. For this entry, you may want to enable the invoke via IE capability discussed in http://blogs.msdn.com/dwinter/archive/2005/02/21/377695.aspxWe’ll start with a C# Windows Form application.  I generally go ahead and add the Microsoft.SharePoint reference because I’m doing more then just a…

2

Programatically change metadata across all data on all SPList objects in WSS

Refer to http://blogs.msdn.com/dwinter/archive/2005/02/15/373076.aspx for setup if you are not familiar with creating a SharePoint OM application. This is a simple example of programatically changing metadata on data within all lists in a site.  This can be necessary if you wish to change static data within custom or default fields, or perhaps to adjust a migration gone wrong. This function…

2