May 2009 Archives

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>

About this Archive

This page is an archive of entries from May 2009 listed from newest to oldest.

February 2009 is the previous archive.

December 2009 is the next archive.

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