MainDoctor WhoMusicSoftware
Main Page

Alden Bates' Weblog

Feigning normality since 1973

Paged Archives v1.2!

Filed in: Movable Type.

It's time, I guess, for my monthly Paged Archives plugin release! This will probably be the last one, barring any bugs... The main changes this time are some tags to handle date headers, which I'd neglected in previous versions, and a new way of constructing the URLs used in the page links (because it kept randomly using the Doctor Who archive URL for the Website Management pages. Weird).

You can read read about it and download it from the Paged Archives plugin page.

Edit: Please mote that the plugin will only work if you are statically publishing your blog with MT. It will not work if you are dynamically publishing using PHP files.

Posted October 4, 2006 6:40 PM

Comments

Hi Alden,

Thanks for the plugin. I installed it okay but couldn't get it to work as it throws up a SMARTY error. I presume this is because I am using dynamic publishing.

Is there any way around this error (rather than switching to static publishing)?

Posted by: Michael Heraghty | October 30, 2006 11:40 PM

Sorry, PagedArchives only works on static publishing - you have to use something like MTPaginate if you're using dynamic publishing.

Posted by: Alden Bates | October 31, 2006 6:28 AM

I haven't gotten this to work and I'm not sure it's relevant but the first sentence of instruction #3 in your setup guide doesn't make sense:


In the templates you wish to paginate, add the tag after and add the tag after . If you are going to paginate the main index, you should read the section below titled "MAIN INDEX PAGING"

Posted by: Aaron | November 5, 2006 1:58 AM

Oh yeah, missed escaping the tags. Should be fixed now (the instructions were intact in the readme.txt file though). Thanks for pointing that out. :)

Posted by: Alden Bates | November 5, 2006 9:41 AM

My links Next Page and Previous page ar generated with correct path + root path
(local installation)
Generated:
http://localhost/mt/C:/websvr/xampp/htdocs/mt/2.html
Should b:
http://localhost/mt/2.html

Ive looked at main settings, but thats ok.. path to root, and path to archive root are set correct.
Hopefully you can point me in the right direction, very pleased with your solution!

Posted by: Per | November 7, 2006 7:41 PM

well..
me too.

Generated:
http://localhost/mt/C:/websvr/xampp/htdocs/mt/2.html
Should be:
http://localhost/mt/2.html

Posted by: dyki | November 8, 2006 9:58 PM

I´m just going to switch from WP to MT (I´m just testing on a /test-blog/).

I use in MT xyz.com/article/ instead of xyz.com/article.html - just like WP does.

Can I use this Plugin for xyz.com/2/ instead of xyz.com/2.html?


Posted by: André | November 14, 2006 8:37 PM

It won't do /2/ type URLs at the moment, only /2.html or /index2.html type URLs. That's possibly an option I could look at adding, but it'd be trickier because it involves creating a bunch of directories (and deleting them should the extra pages ever go away...)

Posted by: Alden Bates | November 14, 2006 8:48 PM

Thanks for the fast answer.

It would be fine, if you could add it in the future.

Posted by: André | November 14, 2006 9:10 PM

Great work! I'M USING IT!

Posted by: cime | November 22, 2006 8:38 PM

I'm having a problem, but don't understand why.

I installed the plug-in, and it works great on my archive category pages. I am having problems on my main/index page. It tries to show all 50 entries I have it set for. I included MTPASettings entriesperpage="10" and now it just shows 10, and I can see pages index2-index5 in my directory, but the links won't show at the top, though the separators I included in the conditional tags do...


[div id="alpha-inner" class="pkg"]

[p class="content-nav"]
[MTPASettings entriesperpage="10"][MTPAIfMultiplePages][MTPAPreviousPage] |[/MTPAIfMultiplePages]
[a href="[$MTBlogURL$]"]Main[/a]
[MTPAIfMultiplePages]| [MTPANextPage][/MTPAIfMultiplePages]
[/p]

help?

Posted by: Lyssa | November 25, 2006 6:49 AM

I am having the same problem as Per and dyki. Is there a solution to this?

greatly appreciated.

Posted by: hank | November 27, 2006 9:59 AM

All working fine if you have Less 3 categories & Less 1000 posts. My blog have 20 categories & more 10 000 posts = Out of memory during large request :(

Posted by: zero | December 2, 2006 9:56 PM

I have run into a problem with this plugin no playing well with the periodic tasks in Movable Type. I use those to post scheduled entries and it looks like the plugin throws an error out of the cronjob:
"my" variable $filepath masks earlier declaration in same scope at /home/thatguyp/baytimesjournal.com/admin/plugins/pagedarchives.pl line 235.
any ideas on what the deal is or if there's a fix? Thanks!

Posted by: Matt Adams | January 12, 2007 1:25 PM

Matt: that's really only a warning and shouldn't affect the operation of the plugin. If you want to fix it, open pagedarchives.pl in a text editor, nip down to line 235 and take the "my" off the start of the line. I'll fix that in the next version...

Posted by: Alden Bates | January 12, 2007 2:20 PM

Good work! thanks.

I want use IMG tag (ex. IMAGE arrow..) in MTPAPreviousPage.

and I want use "offset" attribute in MTEntries tag.

please..

Posted by: aki | January 17, 2007 1:23 PM

Aki: So far as I know, there shouldn't be a problem with using offset. To use the img tag in PreviousPage, I guess you would just need to use single-quotes for the arguments (<MTPAPreviousPage text="<img src='arrow.gif' alt='&lt;&lt;'>">)

Posted by: Alden Bates | January 17, 2007 1:54 PM

I updated MT to 3.34 and now the plugin doesn't work :(

Posted by: Pera | January 20, 2007 8:29 AM

Thanks, Pera. I'll upgrade this afternoon and see if I can track down the problem.

Posted by: Alden Bates | January 20, 2007 10:39 AM

Hello Alden,

Great plugin!

Is it possible to have let's say category pages paginated to 10 entries each sub-page, but:

- after the 1st article post on each sub-page display something like an AD;

- same as above for after the 2nd article in the block of 10 articles per sub-page.

Thanks a lot

Posted by: Mihai Bocsaru | January 26, 2007 8:39 AM

Mihai: There's no way to do that presently. It could be done, but this plugin is already enough of a hack that I don't want to make it any more hacky than necessary. :/

Posted by: Alden Bates | January 26, 2007 8:55 AM

Great plugin!

I have one slight problem though. For some reason the links on the navigation pages are broken (they're not pointing to the correct pages). Is there a place I can tweak this? On the .pl file, or somewhere else?

Posted by: LoLo | February 22, 2007 9:34 AM

Hello Alden,
This is Sayuri from Japan.

This plugin is so great.

However, it doesn't work well on MT 3.34.
There is a problem on link generation:

I wrote:
------------------------
<MTPASettings entriesperpage="01">

<MTPAIfMultiplePages>
<MTPAPreviousPage text="NewerContets">
Page <MTPAPageNum> of <MTPAPageCount>
<MTPANextPage text="PastContents">
</MTPAIfMultiplePages>

<MTEntries><MTPAEntry>...
------------------------

Then,
The link path of MTPANextPage (PastContents) goes like below:

"index.html2.html"

Please solve this problem.

Thank you,

Posted by: Sayuri | February 27, 2007 11:23 PM

Sayuri: do you by chance have an "IndexBasename" line in your mt.cfg? It sounds like the basename is set oddly. I'll allow for this in the next version, at any rate.

Posted by: Alden Bates | February 28, 2007 12:09 AM

Hello Alden,

I just started using your plugin. Thanks for making this so simple! I was wondering how to write something like "NEXT >>" in the "text" area? This is a pretty common thing on many blogs but when I tried it with this plugin I would get extra bits of code due to the >>. Thanks for any advice.

Nancy

Posted by: Nancy | July 1, 2008 6:48 PM

Hi Nancy. You should use HTML entities and write them as &gt; instead of >

Posted by: Alden | July 1, 2008 7:49 PM

Ohhhh....thanks so much, Alden!

Posted by: Nancy | July 2, 2008 5:31 PM

Post a comment





Tetrap.com Site Map