|
||||
The Branded MastheadTo brand your blog, and keep it manageable... you are going to want to break certain parts of your template into separate Moveable Type "modules." The first of these is the page masthead. I have broken the masthead into two files,
Remember, I'm working with the Advanced template here so I'll be using that navigation bar. To make this easier for you I've created my Masthead "module" so it saves the file at http://blog.case.edu/dkh2/masthead_cranberry_advanced.html, where you can grab a copy. Right-Click (Mac users Control-Click) the linked address and do a save-as to grab a copy for editing. I'll include a preformatted copy of the code at the bottom of this post if that's easier for you. Creating a ModuleOnce you have logged in on Blog.Case and you have your administrative menu on screen, the first link in the "Manage" section takes you to "Templates." The last section on this page handles "Modules." Click the link to create a new module, name it something appropriate like "Masthead" and past the code into it. You have the optional opportunity to assign a filename to the module as well. I did that so the code would be available to you.Save your changes and rebuild your site so everything gets created before moving on the the next section. Customizing Your MastheadMy masthead code is specific to Kelvin Smith Library. The H1 tag in the masthead is linked to the KSL web site. You will want to change this to provide your department name and link it to your departments web site.Save your changes and rebuild your site so everything gets created before moving on the the next section. The Primary NavbarAgain, I've made this file available at http://blog.case.edu/dkh2/navbar.html. You should not need to make any changes to this file. Just create a "Navbar" module and paste in the code.Save your changes and rebuild your site so everything gets created. Fix the ImagesUpload copies of any graphics to your site and update the Masthead module to pull these images from their new location. Save your changes and rebuild your site so everything gets created. Next Steps
Finally! The Codemasthead_cranberry_advanced.htmlRemember, this is an HTML fragment so you won't have the normal <html><head> ... </head><body> ... </body></html> structure wrapped around it.<!-- GLOBAL HEADER NAV SHOULD NOT CHANGE --> <tr valign="top"> <td width="24" style="margin: 0; padding: 0;"> </td> <td colspan="2" align="right"><div id="headernav"><em>CASE.EDU:</em> <a href="http://www.case.edu">HOME</a> | <a href="http://www.case.edu/dir">DIRECTORIES</a> | <a href="http://www.cwru.edu/search.htm">SEARCH</a></div></td> </tr> <!-- END GLOBAL HEADER NAV -->Note: If you are using the "Normal" remplate you will want to delete or comment out that last table row. navbar.html<!-- BEGIN HORIZONTAL SECTION NAV --> <div id="pnav"> <table summary="layout" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr height="24"> <td> <ul> <li><a href="http://blog.case.edu/">Blog@Case Home</a></li> <li>|</li> <li><a href="<$MTBlogURL$>" >My Home</a></li> <li>|</li> <li><a href="<$MTBlogURL$>archives">Archives</a></li> <li>|</li> <li><a href="<$MTBlogURL$>categories">Categories</a></li> <li>|</li> <li><form method="get" action="<$MTCGIPath$><$MTSearchScript$>" name="searchForm" id="searchForm" style="display: inline;"> <input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" /><input accesskey="4" id="search" name="search" value="Search Terms" size="20" /> <a href="#" class="navBarLink" id="searchLink" onclick="document.searchForm.submit();">Search</a></form> </li> </ul> </td> <td align="right" color="#FFFFFF"> <ul><li> </li></ul> </td> </tr> </table> Have fun! and come back for the next step in this process to be posted soon. TrackbacksTrackback URL for this entry is: http://blog.case.edu/dkh2/mt-tb.cgi/1003Post a commentEmail This Entry: |
||||
|
|
||||
Comments
Neuman spake from the ether on April 14, 2005 11:36 AM to say:
What is the code to include a module in a page?
Thanks for the comments on my blog, and the birthday wishes.
dkh2 spake from the ether on April 14, 2005 12:06 PM to say:
Eric,
You'll find everything you need to know about including things in the help files. Look for the MTInclude tag. An example is in the last couple of lines of my Masthead code (above) where I include my "Primary Navbar" module.