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

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.

PlaceHolderSiteName

PlaceHolderTopNavBar

PlaceHolderHorizontalBar

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

SPNavigation

PlaceholderTitleinTitleArea

PlaceholderTitleRightMargin

PlaceholderLeftNavDataSource

PlaceholderLeftNavBarTop

PlaceholderLeftNavBarBorder

PlaceholderFormDigest

PlaceholderUtilityContent

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
Comment:
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
Comment:
hey,
I was wasting sometime when i found something which most of us will tend to make mistake on:
http://baigadil.blogspot.com/2010/04/exterbal-links-in-sharepoint-aspmenu.html
Title: Any way to use Cascading Master pages   
Name: Diwakar
Date: 2008-09-05 5:05:33 PM
Comment:
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
Comment:
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
Comment:
you mentioned in the part about adding the sitemap provider to the web.config file...
siteMapFile="Menu.sitemap"

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

Thanks for the excellent resource,

Klibey
Title: WSS or Moss   
Name: Manuelito
Date: 2007-09-06 7:51:00 AM
Comment:
Hi,
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-2019 ASPAlliance.com  |  Page Processed at 2019-09-15 4:25:21 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search