MainDoctor WhoMusicSoftware
Main Page

Alden Bates' Weblog

Feigning normality since 1973

Paged Archives v1.24

Filed in: Movable Type.

This is a minor release to fix some problems a couple of people were having with the previous version. It seems that MT sometimes reports the main blog URL as having a filename on the end and sometimes it doesn't, so I'm using relative links instead now. Also I discovered that the plugin settings were available at both the system level and the blog level (PA was only using the blog level setting), so now it uses both.

Also I made a spiffy icon, which appears in the right-hand column on the main page here, but I don't know how to add it to the plugin itself. Eh.

There's a reported problem with it working with the MTEntriesWith SubCategories tag (According to the MT changelog this tag is depreciated in favour of using the include_subcategories on MTEntries) which I haven't had time to look into yet.

You can download this plugin on the Paged Archives page.

Edit: Despite me updating the plugin entry in the Six Apart plugin directory, the PA page there still says it's on v1.2. And it's still listed as "Paged Categories" on the Archiving categories page. Slack!

Posted April 15, 2007 11:33 AM


I reported the problem of MTEntriesWithSubCategories and now I'll say that resolved. I just changed my archive template design. It seems this problem only happens when I try display entries in another category within a category archive.

Posted by: Seiken | April 19, 2007 5:37 PM

This is a highly useful plugin that I use on several sites successfully. Having a problem on a php 5.1.6 server...the publishing of a new entry to a category causes that category index page to overwrite the main site index page. The categories are set to publish inside the archives directory, and use the out-of-the-box basename, as well: category/sub_category/index.php

Publishing works fine with this plugin disabled. Is it not compatible with php 5? Is there some alteration I can make to get this to work on this server?


Posted by: Sekimori | May 3, 2007 9:31 AM

The version of PHP you have installed shouldn't have any bearing - the plugin is written in perl. The problem is only happening when you publish a new entry and not when you rebuild all the pages?

Posted by: Alden Bates | May 3, 2007 10:08 AM


Posted by: Sekimori | May 4, 2007 12:32 AM

Man, Movable Type has the weirdest quirks of any program I've worked with. I'll see what I can do.

Posted by: Alden Bates | May 4, 2007 8:36 AM

Thanks. If you need a login, drop me a note.

Posted by: Sekimori | May 4, 2007 8:51 AM

Oh, and I'll be glad to pay you for your time.

Posted by: Sekimori | May 4, 2007 8:52 AM

Here's a question for you, Mr Whizzy (not that I use MT or anything), but are the pages ordered newest to oldest, or oldest to newest?
All archives I've seen are newest to oldest, but for more coherent reading, it'll be nice to be able to rank 'em the other way...

Posted by: Thad Ritchards | May 22, 2007 10:32 AM

Depends what order the entries are in. The MTEntries tag has a flag to order entries from oldest to newest, and that determines the order the pages are in too...

Posted by: Alden Bates | May 22, 2007 10:43 AM

Does that mean that if MTEntries tag is oldest first, the blog shows oldest first and the archive would be oldest first? There isn't a way to have the blog newest first (so you always see the latest post) and archive oldest first (for coherent reading)? (Or archive both way for extra snazziness! :) )

Posted by: Thad Ritchards | May 22, 2007 10:20 PM

It's done on a per-template basis. The blog main page and the archives have different templates, so you can have the main page as newest first and the monthly archives as oldest first. :)

And yes, I believe you could have two sets of monthly archives, sorted by date/time, one ascending and one descending.

Posted by: Alden Bates | May 22, 2007 10:36 PM

Could the <$MTEntryLink archive_type="Monthly"$> and <$MTEntryLink archive_type="Category"$> tags be expanded to the right archive page?

Thank you :-)

Posted by: Fabio Vescarelli | May 25, 2007 4:53 AM

Aw, man. I wish I could, but because you can define the number of items per page in the template itself, there's no way of knowing (outside that template) which page a particular entry will be on.

I suppose I could just go by the blog setting and hang the template setting, which I suspect would cater for most people...

Posted by: Alden Bates | May 25, 2007 8:45 AM

Yes, I think that this would cater for most people... It wouldn't be a big limit, and the feature will be very useful and appreciated - you know I'm thinking about a "Previous page" link from the main index to the right monthly archive page... ;-)

Posted by: Fabio Vescarelli | May 25, 2007 3:04 PM

Thank you, thank you, thank you. This plugin solves a problem of mine that I've been fighting with for a long time.

Posted by: Sara | May 26, 2007 8:32 AM

Hi -
We'd like to use something like this:

And wondered if you were aware of any issues with using the offset combined with the pagination plugin like this.


Posted by: terrie | June 19, 2007 10:15 AM

Sorry, that code should be:

<MTEntries lastn="1">

(Code to display after the first entry only)

<MTEntries offset="1">

Posted by: terrie | June 19, 2007 10:53 AM

Yes, that will work. You'll need to put MTPAEntry tags after both MTEntries tags like so:
<MTEntries lastn="1"><MTPAEntry>

(Code to display after the first entry only)

<MTEntries offset="1"><MTPAEntry>

Note no MTPAEnd tag after the first MTEntries block.

Posted by: Alden Bates | June 19, 2007 12:00 PM

Post a comment Site Map