Article Categories
Archives
Post Categories
  Jump to Information for:
Search:  

I have created a base master page file that can be used for creation of new custom master pages.   Microsoft provides this, but I ran into issues with this code and instead created a base file using components of default.master (that ships with SharePoint).

This code contains all the necessary content placeholders in order for the page to run.  You can wrap your custom code around the placeholders and add your custom CSS file(s) in order to brand the master page.

The majority of the placeholders are labeled by area of the page or functionality.  The rest are listed in the SDK, and are mainly superfluous placeholders that hold spacing images to create borders and margins.  You will more than likely not be utilizing these, and you can move them to the hidden ASP panel located at the bottom of the file.   Do not delete the ones you don't want to use, just move everything to the hidden panel.  Without them all, pages in the SharePoint site will not render.

Click the link below to download a zip file containing the base master page file.

» Heather's Base Master Page

For more information about master pages and SharePoint, refer to:
» MOSS 2007 Design Component Relationships and Diagrams
» CSS Options with Master Pages
» Create a Feature: Master Pages for Site Collections

posted on Friday, January 26, 2007 9:58 AM
Comments
  •  re: Heather's Base Master Page File for SharePoint 2007
    Robin Sanner
    Posted @ 2/8/2007 2:03 PM
    How do I get simple.master, which is used by the forms login page, branded with the theme for the specific SharePoint site for which it was called? I've tried linking to stylesheets in the PlaceHolderAdditionalPageHead section but nothing changes.
  •  re: Heather's Base Master Page File for SharePoint 2007
    Andy
    Posted @ 2/16/2007 1:52 PM
    Robin -

    You need to add the following to your code AFTER the <SharePoint:CssLink ... /> line:

    <SharePoint:Theme runat="server"/>
  • # re: Heather's Base Master Page File for SharePoint 2007
    shane perran
    Posted @ 1/31/2007 3:53 PM
    Have you tested using your page w/ WSS 3.0 (without MOSS)?

    I was under the impression initially that they were the same master page, but after trying out a couple of versions I have seen online, I like you have not had a lot of (turn-key) succsess with them. I'm hoping there is a universal way to use the same blank master page.

    Some awesome posts lately by the way! Love the CSS Chart!
  • # Sharepoint 2007 Customization Ramp Up - Part 3: Basic Customization
    MossMan's SharePoint 2007 Customization Blog
    Posted @ 3/12/2007 10:24 AM
    Previous Installments: Part 1 - Part 2 Welcome to Part 3 of the series. In the previous two sections
  •  re: Heather's Base Master Page File for SharePoint 2007
    Paul
    Posted @ 5/2/2007 8:28 PM
    Hi,

    Just to followup on Shane Perran's question above, any master page advice or examples for WSS 3.0? (not MOSS).

    Thanks
    Paul
  •  re: Heather's Base Master Page File for SharePoint 2007
    Paul
    Posted @ 5/12/2007 9:04 AM
    Hi Heather,

    For us rookies and with literally no talent for making pages look good... can you supply a screen shot of what your "HeathersBaseMasterPage.master" looks like once implemented?

    I used it as the new default master page while doing Todd Bleeker's Chapter 6 Create Site Definition (http://developersguide.mindsharp.com/Lists/AskTheAuthor/Threaded.aspx?RootFolder=%2fLists%2fAskTheAuthor%2fTodd%2c%20before%20I%20waste%20any%20more%20of%20my%20time%2c%20is%20this%20even%20possible&FolderCTID=0x012002002ED581118A7DDE42AAC9169E9216A1AB&TopicsView=http%3A%2F%2Fdevelopersguide%2Emindsharp%2Ecom%2FLists%2FAskTheAuthor%2FAllItems%2Easpx
    )....and it looks, well, odd. everything is left-aligned. What I mean is it looks like everything is listed one under the other (toolbar, site actions, breadcrumbs, left nav...) on the page rather than styled ( Toolbar stretches across the page, with Site Actions on the same row right-justified on the page).

    Any help/insight is appreciated,
    Paul
  • # re: Heather's Base Master Page File for SharePoint 2007
    Dan Sorensen
    Posted @ 5/29/2007 7:11 PM
    Is it possible to create an XHTML 1.0 transitional version of the base master page? Will Sharepoint 3.0/2007 conform to the XHTML standard?
  •  re: Heather's Base Master Page File for SharePoint 2007
    Andy H
    Posted @ 6/11/2007 7:05 AM
    Hi Heather. Great information as always, shame I didn't find this page a couple of days ago ... but will still be useful.

    I've hit a problem related to <!doctypes I wonder if you have seen (and solved). I've so far not found any answers elsewhere. Once you add a <!doctype to your master page, everything works great in IE but some of the menus misbehave in Firefox and some other browsers. For example, in Firefox the Site Actions menu does not pop up underneath the button, but instead appears at the top of the browser window. This gets worse when you attempt to select a sub-menu from the pop up menu as that appears away from the mouse at the top of the page. There is also a rendering issue with the last menu item, forcing scrollbars when you roll over it.

    Have you come across this problem and found any solutions?
  •  re: Heather's Base Master Page File for SharePoint 2007
    Marc Truitt
    Posted @ 6/22/2007 3:27 PM
    Hello,

    I have a strange problem, I used the minimal master page to start with everything looks fine if I view the page but when another user (who is just a visitor) views the site the graphics and images are gone all the colors set by the custom css file are gone it is just a plain white background....very strange...any simple suggestions. Also I'm interested in talking to you about your SharePoint bootcamps for our Company.


  •  re: Heather's Base Master Page File for SharePoint 2007
    Paisleygo
    Posted @ 6/26/2007 11:49 AM
    Hi Heather,

    I am reading alot about customization. I am getting a little confused about when to use themes, when to use straight style sheet manipulation and when to "unghost" pages

    Can you give a sort of broad step by step approach to customizing a site

    example:
    Start with the base masterpage
    then copy the core.css and use it for the customized styles
    then save that master page to the root of the website and use it as the base for all sites to come
    (this is where I was thinking about using nested master pages for the sites under my top level site - have you done that?)


    Except in your step by step- maybe it could be a little more cohesive with links to your articles that support each step?????


    do you have any examples of having taken this Base Master page and customized it - rather simply? -to get us started?

    Any help would be greatly appreciated.
    thanks,
    Paisley
  •  re: Heather's Base Master Page File for SharePoint 2007
    no one
    Posted @ 6/27/2007 8:49 AM
    AWESOME! Thanks! After some more tweeks, I got it how I like!
  •  re: Heather's Base Master Page File for SharePoint 2007
    Sam Langdon
    Posted @ 6/28/2007 9:45 AM
    Looks great in theory, but I get the nasty old File Not Found error. I can't see any dodgy file refs in there & I've got a standard install, so not sure what the deal is. I've got the MS simple master page working fine, but it's a bit naff.
  •  re: Heather's Base Master Page File for SharePoint 2007
    arul
    Posted @ 7/31/2007 8:08 AM
    Hi
    I have follow your instructions to create a feature for master pages , After createing and activating the Feature ( Custom Master )
    after selecting Master file from Site Collectio feature / Look and Feel / Master Page , When i open a default page i got an error File Not Found .

    Could you please let me know where i did the mistake

    Arul
  •  re: Heather's Base Master Page File for SharePoint 2007
    Sreelakshmi
    Posted @ 8/3/2007 2:13 AM
    Thank you Very much Heather!!!! Thanks for the work around for customizing the master page. It was of immnese help to us.
  •  re: Heather's Base Master Page File for SharePoint 2007
    Scott Anderson
    Posted @ 8/12/2007 8:52 AM
    Hi Heather,

    You mention that you can move them to the hidden ASP panel located at the bottom of the file. Are you referring to the asp:Panel? If so, I have been moving items I don't want on my page into this section, but they still appear affected in the aspx page. Any ideas on what may cause this? My desire is to create blank display and edit forms that do not have all of the normal WSS3 overhead, (ie. header, side quick nav area etc.).

    Thanks,
    Scott
  •  re: Heather's Base Master Page File for SharePoint 2007
    Jess
    Posted @ 8/26/2007 12:40 AM
    I have a problem with creating new content (such as new discussion) when i use the custom master page; i'm not sure what's wrong and i've been battling with it for a while now. Any ideas what's the matter?

    ~jess
  •  re: Heather's Base Master Page File for SharePoint 2007
    AndyA
    Posted @ 9/10/2007 1:47 PM
    I have a master page created for my website which follows the default.aspx, but when i try to use it on the error.aspx it's not working. Are there any differences between default.aspx and simple.aspx that cause this not to work?
  • # Sharepoint 2007 Customization Ramp Up - Part 3: Basic Customization
    The Mossman
    Posted @ 9/29/2007 9:51 PM
    Previous Installments: Part 1 - Part 2 (UPDATED LINKS) Welcome to Part 3 of the series. In the previous
  •  re: Heather's Base Master Page File for SharePoint 2007
    Hannah
    Posted @ 10/8/2007 7:35 AM
    Thank you! This makes my life so much easier!
  •  re: Heather's Base Master Page File for SharePoint 2007
    mc
    Posted @ 10/10/2007 11:02 PM
    I second Paul's suggestion of a screenshot.
  •  re: Heather's Base Master Page File for SharePoint 2007
    Hannah
    Posted @ 10/23/2007 9:56 AM
    Heather, thanks very much for all this wonderful information. I suspect I use the CSS overview daily and this masterpage resides on my desktop. Seriously - I go around telling people you're my personal hero. :)

    For the other people who enthusiastically move as many controls as possible to that hidden area and got rid of the Page Editing Toolbar (yeah, really hard to save pages)... you need this code:

    <!--- --- --- Edit Consoles --- --- --->
    <asp:ContentPlaceHolder ID="WSSDesignConsole" runat="server">
    <wssuc:DesignModeConsole id="IdDesignModeConsole" runat="server"/>
    </asp:ContentPlaceHolder>

    Hope this saves someone else a few hours. :)
  • # Can we change the Welcome message on Personal Actions Menu?
    Bonnie
    Posted @ 11/15/2007 12:16 PM
    Hi Heather,

    Do you know if it is possible to change the Welcome User message on the Personal Actions menu?

    Ours shows Welcome Lastname, Firstname but our stakeholders don't like it.

    We would like to change it to show Welcome Firstname Lastname or maybe just Welcome Firstname?

    Thanks!

    Bonnie

  •  re: Heather's Base Master Page File for SharePoint 2007
    kallan
    Posted @ 11/22/2007 4:13 PM
    Thank you so much are a genius.

    I was pulling my hair out on a job for a client. This post has saved my sainty.

    Thanks again.
  •  re: Heather's Base Master Page File for SharePoint 2007
    Wei
    Posted @ 11/28/2007 3:12 AM
    Hi,

    I just want to ask a simple question. How am I able to use different masterpage for different contents? Is there a unique location that Im supposed to stored the masterpage?

    I tried to add reference to the masterpage in the same location and the error message stated that the masterpage file cant be referenced.
  •  re: Heather's Base Master Page File for SharePoint 2007
    dave nixon
    Posted @ 11/30/2007 4:24 PM
    Hi Heather...sorry to bother you!
    Is there any method for creating a minimal master page for wss3.0 only implementations rather than full moss?
    I'm trying to create a wss site that is branded to look nothing like wss but before i start i'd like some guidance from you if possible

    TIA
    Dave

  • # re: Heather's Base Master Page File for SharePoint 2007
    Adrian
    Posted @ 12/12/2007 9:27 PM
    Hello..
    Dan Sorensen hit the nail on the head. When is SharePoint going to be able to output XHTML-compliant code, out of the box?? We are using MOSS2007 here, and having a major battle to output even a BLANK page that is XHTML compliant.
    I really can't believe that MS have such disregard for Web Standards!!!
    Anyway, happy coding all!
    -Adrian
  •  re: Heather's Base Master Page File for SharePoint 2007
    Dana
    Posted @ 12/27/2007 3:16 PM
    Thanks--this saved me a lot of time!
  •  re: Heather's Base Master Page File for SharePoint 2007
    Milo
    Posted @ 2/11/2008 1:04 PM
    THANK YOU THANK YOU THANK YOU
    I've been searching for this for a long time.
    Works great
    THANK YOU
  • # re: Heather's Base Master Page File for SharePoint 2007
    ask siirleri
    Posted @ 2/15/2008 3:05 PM
    I just want to ask a simple question. How am I able to use different masterpage for different contents? Is there a unique location that Im supposed to stored the masterpage?

    I tried to add reference to the masterpage in the same location and the error message stated that the masterpage file cant be referenced.
  •  re: Heather's Base Master Page File for SharePoint 2007
    Milo
    Posted @ 2/26/2008 1:49 PM
    I've been plugging along customizing a SharePoint site using HeathersBaseMasterPage but when I change the sites theme via Site Settings the theme is applied to the management UI but not the public UI? Any ideas?

    The following works fine

    <style type="text/css">
    /**** Overriding styles for branding ~ located in the CSSSTyleLibrary ****/
    @import url("/CSSStyleLibrary/name.css");
    .style1 {
    border-width: 0;
    }
    .style2 {
    text-align: center;
    }
    </style>

    But the following does not seam to be what's controlling the theme?

    <meta name="Microsoft Theme" content="Breeze2 1011, default">


    Any ideas?
  •  re: Heather's Base Master Page File for SharePoint 2007
    Milo
    Posted @ 2/28/2008 8:55 AM
    Themes are not being applied to the BaseMasterPage, how do I correct this problem?
  •  Tight coupling! Sound like a bad idea...
    Test
    Posted @ 3/6/2008 1:45 PM
    Cant beleive that everybody seems to suggest this as a way to customize sharepoint master page. Why there has to be such a tight coupling with so many place holders? I just want to have my own master page with my own palce holders.. How do I build it from scratch?
  •  re: Heather's Base Master Page File for SharePoint 2007
    Jeff
    Posted @ 3/13/2008 9:57 AM
    OK, lots of questions about branding the LOGIN.ASPX page and it took me forever to finally figure out....so I will share....

    The simplest way is to just edit simple.master and add the following line within the HEAD tag:
    &LTlink rel="stylesheet" type="text/css" href="customtheme.css"/&GT

    Then put your customtheme.css in the LAYOUTS directory.

    My hair is pulled out so yours does not have to be!!
    That sucked.
  • # re: Heather's Base Master Page File for SharePoint 2007
    Dale Clarke
    Posted @ 3/30/2008 8:36 AM
    I have been trying to follow some of the branding how-tos and find that I do NOT have OWS.css in any of my servers. I have CORE.css, lots of theme.css, etc. I have used explorer search across all the c:/ on VMware in a 2003 R2 server instance I created I searched, on a VMware instance created by another person using the 2008 server, and lastly on a 2003 R2 server on my physical box I searched.

    I have done virtually no sharepoint development on any of the SP servers -- it it something created only after building sollections?

    All the other Heather tings have worked. I have built a custom theme, a custom Master page, Installed and activated them but OWS.css seems my achilles heel.

    I feel stupid.

    Can someone tell me why it is not there?
  •  re: Heather's Base Master Page File for SharePoint 2007
    Gurmeet
    Posted @ 5/19/2008 12:14 PM
    Hi,

    How can we have different Master Pages for a Site ? e.g. HomePage, SubPages etc.

    The homepage of my site is totally different then the other sub pages. If I make Custom Master for my sub pages, and apply it to the whole site, then how will I make my HomePage?

    There is nothing common among the homepage & sub pages.

    Please help, would appreciate your quick help. I am desperate !!

    Thanks,

    Gurmeet
  •  re: Heather's Base Master Page File for SharePoint 2007
    Lynton Steyn
    Posted @ 6/9/2008 3:19 AM
    I have been working on developing a custom MOSS Publishing Site, one that caters for various different MasterPages, as well as alternative .css to cater for compatibility, etc. I first started working on IE6, but soon realised that I would have to consider changes in IE7. You can imagine the nasty surprise I got when I opened the FireFox browser (even Opera!) and there appeared to be two major issues, which I have thus far not been able to solve:

    1.) I have a custom RSS feed: I have applied custon style to the underlying XSLT. (FireFox renders this very differently to say the least!) Any head's-up? :)

    2.) Any custom form buttons with onclick="" (events), have somehow gotten lost. The functionaltity is simply gone. Is there some hidden FireFox directive that says lets make life as complicated as possible for Microsoft Internet Explorer?
  •  re: Heather's Base Master Page File for SharePoint 2007
    fer
    Posted @ 7/30/2008 7:26 AM
    Hi, we used this base masterpage for the default environment, works good. With some minimal css modifications in our custom design and theming, it also works for the individual MySIte (<web>/mysite/personal/userid).

    Now we are applying this custom master to the public MySite (Person.aspx) and this doesn't work (only the theming is caught).

    Our question: Are the components in the base master the same set as used in the MSDN base master and is this masterpage therefore also applicable on custom styling the public MySite?

  •  re: Heather's Base Master Page File for SharePoint 2007
    rehmo
    Posted @ 9/15/2008 8:41 PM
    Hi,

    Thanks for this post. I'm having trouble with placeholder how do navigate and where to get those placeholder?

    Is there any pre-requisite knowledge for WSS? grrr i feel stupid :(

    Do sharepoint has a basic guide for placeholders?
  •  re: Heather's Base Master Page File for SharePoint 2007
    venu
    Posted @ 9/19/2008 2:03 PM
    how many masterpages in moss
  •  re: Heather's Base Master Page File for SharePoint 2007
    SOLAN
    Posted @ 10/15/2008 7:16 AM
    Hi,
    I have encountered a strange bug?? in WSS 3.0.
    In My Site one can see the two buttons - "Set as Default My Site" | "Create Blog" if you use Internet Explorer,
    but you don´t see the buttons using Firefox.

    Can anyone please help me solving this issue?
    Its the miniconsole and the <div´s it contains. I beleive changes needs to be done in the CORE.css as well, but I only see the "Create Blog" button, when I change the wikieditouter position to relative, using Firefox. But the buttons end up in another position in Internet Explorer....

    I really need help solving this.

    Thansk in before hand.
  • # re: Heather's Base Master Page File for SharePoint 2007
    John McLibe
    Posted @ 11/26/2008 2:04 PM
    THANKS!!!

    simple question:

    Themes are not being applied to the BaseMasterPage, how do I correct this problem?
Title  
Name  
Email (never displayed)
Url
Comments   
ALL COMMENTS ARE MODERATED! Sorry for the inconvenience, but it is how I keep all of the spam and advertisers out. I moderate comments about once a week and your comment will appear soon. Thanks for posting!
Please add 1 and 6 and type the answer here:

Copyright © 2005-2008. Heather Solomon.
Site design by Heather Solomon

Blog Stats:
Posts - 378
Stories - 38
Comments - 1581
Trackbacks - 182