Tuesday, November 3, 2009

application.master in SharePoint 2010 – Best New Ever!

During the launch of… Sorry, strike that… During Steve Ballmer’s promise to launch the beta of SharePoint 2010, on November 18 if you believe the now removed statements from Microsoft in Germany, I made a serious error in code reading. I looked at the reflected code for the handling of master pages in SharePoint 2010 beta, and messed up the logic stating which application master should be used.

Now, the deal with application.master in pre-SharePoint 2010 is dreadful. In short, there is no supported way of customizing the application.master page, used in every page under the _layouts virtual folder. I’m not going to go into the details here, but designers have torn out massive amount of hair from their heads, trying to work around the issue, in a supportable manner.

Note: Yes, I know you have two supported options, but they are so lame that the disadvantages outweigh the benefits by an order of magnitude.

So, when I read the code I was first really happy, since it appeared that Microsoft had listened and made it possible to use a custom application.master. Then, and this is where I made my serious error, I saw that they only allowed you to select whether to use the V3 version or the V4 version of the default application.master.

I vented my frustration on Twitter, and lo and behold, an angel appeared, in the shape of Elisabeth Olson (@ElisOl) who informed me that I read wrong and that SharePoint 2010 does indeed use the site master page for the application pages as well.

Oh, boy, I have never been more happy to be wrong in my life. Finally, we can get rid of the default application.master while ensuring that we won’t be mocked if we ever need to call Microsoft for support.

.b

If you like this post or this blog, please visit the sponsors from SharePointAds.com and hear what they have to say:

0 comments: