Wednesday, May 14, 2008

Branding meeting workspaces

I recently had an issue where I created a master page and tried to apply it (using feature stapling) to sites based on meeting workspace site templates. The lessons learnt from this were:

  1. Meeting workspaces don't use default.master. They use MWSdefault.master. Base the master page for meeting workspaces on MWSdefault.master as it has extra functionality specific to meeting workspaces.
  2. When setting the master page programatically, you need to set two properties as follows:
    web.MasterUrl = "something.master";
    web.CustomMasterUrl = "something.master";
    For sites based on other site templates I only had to set web.MasterUrl.