Published on
Published in
San Francisco, United States

Entry Archives, Grouped by Month in Movable Type

I have been using Movable Type for a number of years, yet the template code required to present an archived list of entries, grouped by month has always evaded me. On many occasions I searched support forums and wikis looking for a solution the common consensus was that this was impossible to achieve without plug-ins and complicated logic.

However during the recent redesign of this site, another desperate search finally returned the answer. I’ve misplaced the link to the original solution, so as much for my benefit as maybe yours, here is the humble code:

<mt:ArchiveList archive_type="Monthly">
<h2><a href="<mt:ArchiveLink/>"><mt:EntryDate format="%B %Y"$/></a></h2>
<li><a href="<mt:EntryPermalink/>"><mt:EntryDate format="%d"/> - <mt:EntryTitle/></a></li>

This is the first time I’ve posted a chuck of code to my blog, yet in terms of Movable Type templates, it’s probably the last. Issues like this, as well as the fairly stagnant development of the platform and a dwindling community is no match against competing tools like WordPress and ExpressionEngine – I’m pretty sure I will transition to one of these services before the end of the year.

2 comments on this post