tips and tricks for movable type

monthly archives in chronological order
December 21, 2002

Unfortunately (thus far, since you never know what Ben and Mena are cooking up for the next release), there is no sort_order attribute available for the <MTArchiveList> tag.

Kiffin Gish had been hankering for this, so he came up with a Javascript method, and then plugin-guru Brad Choate countered with an MTPerlScript solution.

Both methods (with a couple of variations offered by Brad for his method) can be found in this MT support forum thread.

You can also do this with PHP, as Brenna, RoyalTS, and Maddy demonstrate in this thread.

Comments

The PHP version is my favorite. Though I wanted to list the number of enries per month.

I just used your category listing format Like so:

<MTArchiveList archive_type="Monthly">
<a href="<$MTArchiveLink$>"><$MTArchiveDate format="%B %Y"$> (<MTArchiveCount>)</a><br>
</MTArchiveList>

-mice

by mice | 10.20.03 03:24 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 0
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/123)