Master Page Commands
This is an stsadm extension that provides the following two commands:
- stsadm -o ShowMasterPage -url <site url>
- stsadm -o SetMasterPage -url <site url> -masterpageurl [<page url> | Parent]
- (-defaultmasterurl and -custommasterurl are also supported to set individual master pages. See note below.)
The commands distinguish between MasterUrl and CustomMasterUrl, for regular sites/collections and also publishing sites/collections. Inheritance is supported. This is great for troubleshooting and fixing problems with your master pages.
NotesWindows SharePoint Services defines two types of master pages: the System Master Page and the Site Master Page. Forms and views pages use the System Master Page; publishing pages use the Site Master Page. The CustomMasterUrl attribute tells Windows SharePoint Services which page to use for the Site Master Page. The MasterUrl attribute tells Windows SharePoint Services which page to use for the System Master Page. (from
http://msdn2.microsoft.com/en-us/library/bb687712.aspx)