Extending MT4 - Navigation Bar, Copyright, Justify, and Paginate

| | Comments (0) | TrackBacks (0)

Since I have to update my templates after each upgrade of Movable Type, I decided to list them here in order to find them again the next time :)


Navigation Bar

To get a navigation bar, we need to change two things. Firstly, in the Banner Header add after the blogname description the navigation bar, e.g.

<div id="custom_nav" class="custom_nav">
    <a href="http://www.richproductions.de/lunix">LUNIX</a> |
    <a href="http://www.richproductions.de/nz">New Zealand</a> |
    <a href="contact.html">Contact</a>
</div>

Secondly, we add some css to the Stylesheet, e.g. to get separation lines above and below of the navigation bar:

#custom_nav {
    border-top: 2px solid #6699CC; /* d8e8f5 */
    padding: 7px 0;
    text-transform: uppercase;
    border-bottom: 2px solid #6699CC;
}

.custom_nav a:hover {
    color: #000000;
}

That’s it, rebuild your page and you should see the navigation bar!


Copyright Note

To have your copyright at the bottom of the page, add the following to the Banner Footer template at the appropriate place (which updates the year automatically btw):

&nbsp;&copy; 2002 - <MTDate format="%Y"> richproductions


Justify Blog Entries

In order to justify the blog entries, add to the Stylesheet the following lines:

.asset-content {
    text-align: justify;
}


Pagination

Get Pagination, follow the instructions and install it. After that I got the following error when accessing pages of my blog:

The requested URL /~ritschi/~ritschi/text was not found on this server.

To get it working, you have to allow symbolic links in the apache configuration for the directory of you blog, e.g.

<Directory "/srv/www/mt">
    Options +FollowSymLinks
</Directory>

0 TrackBacks

Listed below are links to blogs that reference this entry: Extending MT4 - Navigation Bar, Copyright, Justify, and Paginate.

TrackBack URL for this entry: http://www.rommel.stw.uni-erlangen.de/~ritschi/cgi-bin/mt/mt-tb.cgi/41

Leave a comment

About this Entry

This page contains a single entry by ritschi published on May 16, 2009 11:22 AM.

GIMP Plugin (update) was the previous entry in this blog.

GIMP Plugin (update 2) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.