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.

Leave a comment

About

I love to play with different features of Movable Type and am constantly trying out new ideas, plugins, pieces of code, themes, etc.
» More...

Recent Entries

  • Notepad Chaos: A Template Set for Movable Type

    Movable Type users looking for something different for their personal blog will love this template set. The design features a notebook look on a striking...

  • Using the Command Line for Fast Upgrades

    My site is hosted on "Dreamhost":http://www.dreamhost.com/rcgi?277567, and the reason I signed up with them was so I could use a command line for direct access...

  • Computer Jargon

    A post on the "MT forum":http://forums.movabletype.org/2008/08/cruft-free-url-annoyances.html called _Cruft-free URL annoyances_ got my attention today and sent me scurrying for a definition. According to Wikipedia, "Cruft":http://en.wikipedia.org/wiki/Cruft...

  • Do I Need To Go Pro?

    With the release of Movable Type Open Source version 4.2, co-inciding with the release of Movable Type Pro, the biggest decision now is which...

  • Up and Down On a Learning Curve

    I've made a few changes to the theme, and noticed a couple of things that happened when I transferred this blog rather than just updating...