Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Building a Community Website > Time for action — creating a master ...

Time for action — creating a master page

Now, let's create the master page that will be stored in the page template category that we just created. The master page is presented at the root of the content tree. By default, this is the page that all content structure is inherited from. During the initial site installation, we selected the Blank master page. This is a simple master page that contains two web part zones. Let's create a more robust version of the site that contains our branding and layout by carrying out the following steps:

  1. Log in to CMS Desk, select the Community Site root, switch to the Properties tab, Template tab, and select Save as new template, as shown in the following screenshot:

    Why create a new template?

    If you don't select the Save as new template button, this will change the default Blank master page template for all sites. While this is a new site, it won't have a tremendous impact now. For production sites, this change will impact any pages using this template.&;


  2. In the Save as new page template dialog, enter the following values, select OK, and then Save.

    Field Value
    Template display name Community Site Master Page
    Template code name CommunitySiteMasterPage
    Template category (Drop-down) Community Site Templates
    Template description Community Site Master Page


  3. Click the Master Page tab, enter the following code into the <body> tag, and then select Save.

    <!-- Top info -->
    <div class="zoneTopInfo">
    <cc1:CMSWebPartZone ID="zoneTopInfo" runat="server" />/>
    </div>
    <div class="mainDiv">
    <div class="zoneTopMembership">
    <cc1:CMSWebPartZone ID="zoneTopMembership" runat="server" />
    </div>
    <div class="zoneTop">
    <cc1:CMSWebPartZone ID="zoneTopImage" runat="server" />
    </div>
    <div class="zoneTopMenu">
    <cc1:CMSWebPartZone ID="zoneTopMenu" runat="server" />
    <div class="clear">&nbsp;</div>
    </div>
    <div class="zoneMain">
    <cc1:CMSWebPartZone ID="zoneContent" runat="server" />
    </div>
    <div class="zoneBottom">
    <cc1:CMSWebPartZone ID="zoneBottom" runat="server" />
    </div>
    </div>
    
    
    					  
  4. Switch to the Design tab to view the new Master Page, as shown in the following screenshot:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial