This project is read-only.

Custom Admin

For configuring a custom application master page. This solution allows different application master pages to be selected, similar to the way the normal master pages are set for system pages and publishing pages. Master pages can be set depending on SPWeb. Custom Admin allows you to use a to change the master page from the standard application.master. This is mainly for pages in the layouts and admin folders, as other master pages you have control over.


Run the commands to install and deploy as needed. Or use central admin to deploy. The final command will generate correct navigation after the solution has been deployed.

cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\"
stsadm.exe -o addsolution -filename components2.customadmin.wsp
stsadm.exe -o deploysolution -name components2.customadmin.wsp -local -allowgacdeployment -url
stsadm.exe -o copyappbincontent


The nuts and bolts of the component uses a IHttpModule to replace the master page are run time. Enable this per web application as needed. Central administration -> Applications -> Manage web application features.



Navigate to a site or web in the web application. A new site settings menu item should be displaying.


This selection screen is similar to the standard master page selector.



Sometimes you may assign a custom application master page that is incorrect, and causes the site settings page to crash, no allowing you to change back to default. For cases like this, activate the following feature from the command line, to reset the application master page to default.

stsadm.exe -o activatefeature -name CustomMasterPageClear -url

Future Developments

  • Make the master a inheritable property


Many ideas came from many different sources

Last edited Mar 17, 2009 at 12:54 PM by djeeg, version 7


No comments yet.