Tuesday, March 11, 2008

Meeting Site Stapling

If you follow the SDK the web sites you create from the built in sharepoint meeting templates will not work.

So copying the meeting site templates, adding in your stuff, will give you errors.

Like the one below:

The content of this Web Part cannot be displayed.
  • This Web Part was designed for use on a Microsoft Meeting Workspace. For more information about creating a Microsoft Meeting Workspace, see your site administrator.

The only way around this is Stapling

find the c# solution here

Sunday, March 2, 2008

Extending Enterprise MySite

I pulled a superb tool from

MySite Stapling proj from MS.

But it did not have everything I needed. Particularly the loading web parts on to the home page. We had written a cross site content query and acquired several 3rd party web parts, and needed the webparts to appear on the mysite home page - default.aspx.

Web parts can either inherit from Microsoft.SharePoint.WebPartPages.WebPart or System.Web.UI.WebControls.WebParts.WebPart. The original MySiteCreate.cs would only load sharepoint web parts. The feature looked at the default page, finds a control and its assembly and then uses reflection to load it. It uses the MySiteStaplee.xml to set the properties.

I have uploaded the complete solution. To use it you will have to have already read the "Customizing MOSS 2007 My Sites within the enterprise" blog.

MySite C# Solution