Monthly Archives: June 2009

Inheriting a Master Page Across Site Collections

Ok, your publishing pages inherit fine but what if you want to inherit a master page on multiple site collections?

Unfortunately there is no easy way to do this if you want it to apply to the form pages as well, you could apply that master page to the entire web application but this would restrict one master page for the site. You need to create a site feature based on this master page template.

1. Open your master page in SharePoint Designer 2007 and make the appropriate changes to the site.

2. Insert your HTML, Javascript and attach your CSS, etc….

3. Copy and paste your master page code into notepad and save as masterpageName.master

4. Follow Heather Solomon’s excellent tutorial on creating a site feature and use your MasterpageName.master as the master page template

http://www.heathersolomon.com/blog/articles/servermstpageforsitecollect_feature.aspx

Once the site feature is activated you can goto Site Actions –> Site Settings –> Master Page and select your master page from the list (tick the box if you want it to apply to all the subsites)

Master Page Settings
Master Page Settings

Result – A custom master page which can be inherited by all the site’s children and the forms.