Customizing WSS 3.0 with Master Pages
page 9 of 14
by Ameet Phadnis
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 60468/ 107

Creating Basic Master Page 2007

Finally, once you understand the basics of how the overall components involved in Master Pages, we can move to creating a basic Master Page. You just need to follow these steps to create the Master Page.

Step 1: Open SharePoint Designer 2007.

Step 2: On the File Menu, click New.

Figure 2

Step 3: On the New Dialog box, click on the Page Tab and Select Master Page. Please note that the SharePoint Content menu will only display if you have opened a SharePoint site.

Step 4: The Master Page will be created as follows.

Figure 3

Step 5: Go to the code tab.

You can highlight everything and replace the code that is listed on MSDN Site.

The code mentioned above will just give you the basic Content Place holders that you need to work. The site will definitely work with the above code. You will have to rearrange the Content Place holders based on your HTML design. But now we have another issue with the above Master Page. If you try to add an item to any of your lists (for ex: Document Library or events list), it will generate an error because it is missing the Content Editor place holders that are needed to display those pages. So, the easiest way is to add the remaining Content Place holders manually. The Content Place Holders that needs to be added in the above code are:

Listing 7

<asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server" />

Using the above syntax you can create Content Place holders for the following.




WSSDesignConsole - This is the missing component which is used while editing.









Once you add the above Content Place holders in the appropriate places as per your HTML design, the site will start functioning on all the pages. You have to save the Master Page to the Master Page Gallery as mentioned in the previous section. You can setup a Master Page as the Default Master Page by Right Clicking on the Master Page and Selecting Set as Default Master Page.

Figure 4

Now you have the basic Master Page ready in the Master Page Gallery. Now we need to assign the Master Page to our site.

View Entire Article

User Comments

Title: Edward   
Name: Logo Design
Date: 2012-07-06 4:10:56 AM
I am impressed by the quality of information on this website. There are a lot of good resources here. I am sure I will visit this place again soon
Title: ExternalLInks display   
Name: Sam
Date: 2010-04-18 12:22:10 PM
I was wasting sometime when i found something which most of us will tend to make mistake on:
Title: Any way to use Cascading Master pages   
Name: Diwakar
Date: 2008-09-05 5:05:33 PM
Is there a way to use Cascading Master pages? The scenario i have is - the root site will have the default master page, the sub site should be able to use their own Master page. I don't want to copy all the contents from the default Master Page and copy it into the Sub site's master page and then add the new stuff. Rather i want to leave the common stuff in the default master page and create the Sub Site master page with new stuff only. And when a page from the Sub site is rendered it uses the combination of two master pages.
Is this possible??
Title: And for wss v3?   
Name: Omar Damiani
Date: 2008-05-02 8:56:04 AM
But this works only for MOSS 2007, for wss v3 what do you have to do to create/add a new Master Page?

For wss v3 in the Site Settings you don't have "Master Page" voice in the "Look and Feel" menù (as explained in the "Assigning your Master Page to your site" section of this article...)
Title: great article   
Name: klibey
Date: 2008-04-25 11:32:50 AM
you mentioned in the part about adding the sitemap provider to the web.config file...

this makes sense, the only thing I am wondering is
where would I drop my sitemap file at?

Thanks for the excellent resource,

Title: WSS or Moss   
Name: Manuelito
Date: 2007-09-06 7:51:00 AM
I think it's about master pages for WSS and MOSS (because you show us snapshots of moss publishing sites)

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-07-25 11:27:48 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search