Home » Sharepoint 2010RSS

Sharepoint Master Pages System.master and Application.master

Hi,

I am trying to create a custom Masterpage. I want to have an Application Masterpage, that is different from the System Masterpage.

 

When i create a Publishing Site it works fine. I can choose two different Masterpages in the Site settings.

Now i want to creat a Team Site and here is the Problem. I can choose two different Masterpages but all Sites always apear in the look of the System Master Page.

 

Does anyone have an Idea, waht I am doing wrong? I think, it has something to do with the publishing features but neither Google nor Bing or the msdn could help me so far. Unfortenatly I am unsing a german Sharepoint so it is diffucult for me to search ;) The Translators at Microsoft did crazy Stuff with the Names of the Settings ;)

thanking you in anticipation

Max

 

3 Answers Found

 

Answer 1

There are a couple things you need to take a look at.

First, you need to understand that there are potentially three different masterpages available in the SharePoint sites you are describing.

Site Masterpage - This is one of the two pages you can set when publishing is turned on.  It represents the ~masterurl/custom.master token referenced in the @Page declaration of a page heading.  It can also be set using Sharepoint Desinger.  The Site masterpage by default is used as the master page for all publishing pages stored in the Pages document library.  So by default its only used in a Publishing site. (That's why you don't see a difference in the Team site) System Masterpage - This is the other master page you can set in the publishing UI or in SPD.  It represents the ~Masterurl/default.master token and is used by all the standard pages stored in the content database. Application.master - this is a master page that used to be used by all the pages in the _Layouts virtual directory.  In SharePoint 2010 there is now the concept of a dynamic masterpage.  That means that by default pages in the _Layouts virtual directory will use the System.master if possible.  If the system.master results in an error then it will fall back to using the Application.master.  You can change that default behavior in the Web Application General settings dialog in Central Administration so that Application.master is again used by default.

So if you want an Application.master that is different from the system.master you need to turn off the default behavior and edit the Application.master.  Remember that editing the Application.master in _Layouts is NOT supported.  Be sure to make a backup before you change anything.

 

Answer 2

What Paul said is 100% correct and just wanted to reiterate that editing the Application.master isn't supported and to be extremely careful if you proceed down that path.

Don't normally like to pile on, but listen to what Paul said :-)

 

Answer 3

Thanks :)

 

Helped me a lot :)

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Tech Videos   |   Follow us on Twitter