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