Archive Page with Month and Entry List

Archive List I've noticed on a few sites the archive page with Month and then the list of post for that month. It took me a while to work out how it was done but finally got it. You can see it in action on my person blog.

It's really quite easy to implement. Go to the Movable Type dashboard in your browser, Design > Templates > Index Templates. Click on the Archive Index template.


Delete all the various archive types after the following line:


<h1 id="page-title" class="archive-title"><$MTGetVar name="page_title"$></h1>

Replace the code with this:


<div class="archive-monthly archive-date-based archive">
<ul>
<MTArchiveList archive_type="Monthly">
<h3 class="archive-header"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></h3>
<ul>
<MTEntries>
<li class="archive-list-item"><a href="<MTEntryPermalink archive_type="Individual">" title="<MTEntryExcerpt>"><MTEntryTitle></a></li>
</MTEntries>
</ul>
</MTArchiveList>
</ul>
</div>

I added custom styles for the archive list as follows:


.archive-header {
    margin-top: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.archive-header a {
text-decoration: none;
}

.archive-list-item {
    list-style: none;
    margin-bottom: 5px;
}

.archive-list-item a{
   text-decoration: none;
}

Be sure to Save and Publish your template and stylesheet changes.

1 Comment

I admire the time and effort you put into your blog. I wish I had the same drive :)


Leave a comment



Recent Entries

  • Send Entries Using HTML Formatted Email

    There used to be a plugin for earlier versions of Movable Type called "MT-Mail-Entry":http://www.nonplus.net/software/mt/MT-Mail-Entry.htm that allowed you to send friends a HTML-formatted email that included...

  • All Comments Not Getting Published

    I had a problem viewing some of the comments on one of my posts. I thought it must be a comment limit somewhere in the...

  • MT 4.23 Update Released

    Movable Type has released a security upgrade that fixes XSS vulnerabilities, and recommends updating to 4.23 as a mandatory. The vulnerability hasn't been exploited yet,...

  • Updated Joost Action Streams Plugin

    The plugin for [Joost Action Streams](http://mt4.juneeonline.com/babble-on/archives/2008/10/joost-action-streams-plugin.php) has been updated to include favourites. If you've previously installed this plugin I recommend deleting Joost from "Other Profiles"...

  • Adding the ShareThis Button to Mid-Century

    There's a tutorial on Rob Kenny's The Composing Stick with instructions for adding AddThis or ShareThis buttons to your posts. After receiving a request today,...

OpenID accepted here Learn more about OpenID