MainDoctor WhoMusicSoftware
Main Page

Alden Bates' Weblog

Feigning normality since 1973

Paged Archives 1.4

Filed in: Movable Type.

[Paged Archives Logo]
I was totally not going to upgrade to Movable Type 5.1, but then I was emailed by German user Elisa Stulpe, who said that my Paged Archives plugin wasn't working in the new version of MT.

So. Long story short, I've just released a new version of the plugin, which you can download on the Paged Archives page. The new version only works with MT5.1, so if you're still running MT4.3 or what have you, stick with version 1.31 of the plugin.

I took the opportunity to fix a few things as well. One was that someone mentioned that <b> is a depreciated tag, and may stop pages validating. The current page in the page listing is now bolded using a <span> tag with a class of "pacurrent" set on it, so if you want to change the styling in your css, you can apply it to that class.

Also, there's a new setting that someone asked for a couple of years ago (Yes, that's how long it's been since the last version two years).

Also, now when PA writes the pages out, it runs them through MT's encode function with whatever your chosen Chartype is. This may seem an odd thing to need to do, as surely everything's stored internally in your chosen encoding, but apparently it's the right thing to do.

The only thing I didn't get done on my to-do list was to add documentation links to the tags. When you're editing a template, a list of available tags appears in the right-hand column. Normally the tags are linked to the documentation for that tag, but the tags for Paged Archives all point to Google searches instead. So far as I can tell, the only way I can fix this is by completely restructuring the plugin to use the new style "registry" introduced in MT4. Eh.

Tl;dr: There's a new version of Paged Archives, but only for people running Movable Type 5.1.

Posted February 21, 2010 2:53 PM

Comments

Tl;dr: ??

So you aren't considering a 1.32 that incorporates your fixes while still working on MT4.3?

(Not that it matters to me, but it's an obvious question to ask...)

Posted by: Thad Ritchards | February 22, 2010 6:11 PM

tl;dr = "Too Long; Didn't Read". For those with short attention spans. :)

I expect everyone will eventually be upgrading to MT5 anyway!

Posted by: Alden | February 22, 2010 6:52 PM

Changes done! I noticed the plugn problem and I wanted to mail you but you were faster and solve the problem.
Well done mate! Cheers!

Posted by: denis rencontre | February 26, 2010 1:10 AM

thanks for updating your plugin to make it work with MT5, it's saved me hunting for an alternative solution.

Posted by: bruemmer | April 16, 2010 8:37 AM

Thanks for the awesome plugin, much easier than messing around with php. I just installed your plugin on a clean 5.01 install and i get this error:
Undefined subroutine
&MT::Template::Tags::Archive::_hdlr_archive_count called
Should I use version 1.31 instead?
Thanks!

Posted by: donk | August 9, 2010 9:11 PM

Alden,

Thanks for the plugin...it works!!

I'm wondering how (if?) I can manipulate it to present not just numbers for pages, but previous months. So if I'm on my monthly archive for September 2010, at the bottom, I can have a "previous month" and "next month" link. I think this is in the controls, but not sure.

Thanks in advance!

Posted by: coolpillows | November 19, 2010 4:07 AM

Hi,
The download link is not working OR file is corrupt.
I tried to download but not getting extract. so please do needful.

Thanks
Amit

Posted by: Amit | February 2, 2011 1:33 AM

That's strange. Downloading the .tar.gz version from the web site results in a corrupt file, yet the file sitting on the server is fine. I will have to have a word with my host about that.

The .zip versions are unaffected.

Posted by: Alden | February 2, 2011 6:57 AM

I installed this plugin yesterday and it works great (thanks!) for a basic <MTEntries> tag but it doesn't paginate on my main page where I use <MTEntries include_blogs="children">.

I saw a reference in the archives in 2007 about a beta solution that was emailed to someone to resolve the issue. Did this solution work and if so, can you make it available to me?

Posted by: Steve | September 17, 2011 3:47 AM

Hi Steve

The functionality in that beta solution was added to the plugin in the next release, I believe. You need to use the MTPASettings tag and in the numofentries argument, use the BlogEntryCount tag with the same parameters as your Entries tag.

Example:
<MTPASettings numofentries='<mt:BlogEntryCount include_blogs="1,2" />' />

Posted by: Alden | September 17, 2011 11:50 AM

That was exactly what I was looking for.

Thanks again for contributing this very, very useful plugin.

Steve...

Posted by: Steve | September 23, 2011 11:53 PM

In your documentation you state that we should set the "Entries to Display" setting higher in order to page the main archives. However in MT 5.1 there is no such setting that I can find; I have been all over the administrative section as well as moveabletype.org and I cannot figure out how to adjust this from the standard 10 entries.

Need some help I guess.

Posted by: Zach | October 13, 2011 4:00 AM

Zach: It looks like they've renamed it. It's at the top of the "Compose" settings for the blog in question. If you look under the "Publishing Defaults", there's a setting called "Listing Default". I currently have that set to 100 posts. I guess I need to update that part of the instructions!

Posted by: Alden | October 13, 2011 7:22 AM

hi alden and tnx for plugin.
alden why dont you change the instruction part?
i searched a lot to find here

Posted by: HiDd#N | December 5, 2011 4:31 AM

thanks for this, alden. if anyone wants to use paged archives and get it to spit out the page numbers/links within unordered list elements so they can be styled nicely with css, here's my quick guide!

Posted by: lia | January 25, 2012 4:38 AM

That's pretty cool, thanks Lia!

Posted by: Alden | January 26, 2012 2:31 PM

Hi Alden,

I'm trying to publish previous and next pagination links without file extensions. I tried this:

<mt:PAPreviousPage text="Newer Entries" replace=".php","/"/>

but sadly it didn't work. I use this trick to manipulate the output from other tags, and although it's a bit of a fudge, it suits my specific setup. Is there a similar way to achieve this with your plugin?

Thanks,

Paul

Posted by: Paul Lloyd | February 11, 2012 10:06 AM

I don't think that's possible without making changes to the plugin itself, sorry!

Posted by: Alden | February 11, 2012 10:16 AM

Hello:
I put the pagefile on the index.html for my blog but I get the following error message:

Undefined subroutine &MT::Template::Tags::Archive::_hdlr_archive_count called

I read this post but I do not know where to put the workaround
http://forums.movabletype.org/2012/02/paged-archives-problem.html

Cheers

Posted by: Manu-El | October 14, 2012 11:25 AM

Hi Manu-El

Put that fix in the main page template, above the mtentries section.

Posted by: Anonymous | October 14, 2012 12:50 PM

Hi, thanks for a great plugin. Used it for years now. There is one thing I haven't managed to figure out though. Google doesn't like duplicate Page Titles It's easy to fix that by including in titles but that means each title includes something like Page 1, 2 etc.

Is there any way to use something like:

This is page 1Page 2 or more.

or maybe

This is page 1Page 2 or more.

Any idea if that's possible?

Posted by: Bjorn | January 18, 2013 9:22 AM

Sorry, the code didn't show up in my first comment:

<mt:IfPAPageNum eq="1">This is page 1<mt:Else>Page 2 or more.</mt:If>

Posted by: Bjorn | January 18, 2013 9:24 AM

Sorry, Bjorn, there isn't a way to do that in the plugin. I would have thought the first option would be preferable anyway?

Posted by: Alden | January 18, 2013 9:57 AM

When I use this plugin (and after adjusting the various settings based on comments above) in MT 5.2.6 on a main index which only has 5 entries, and the following code, 4 of the 5 entries are duplicated and I get two pages of entries.

There is no "Number of Entries" setting in MT 5 that I'm aware of. And as you will see below I have set.

Has anyone else encountered this? What would cause that?

<mt:PASettings numofentries='<mt:BlogEntryCount include_blogs="2" />' />
<mt:PAIfMultiplePages><p><mt:PAPreviousPage text="&#171;"> Page <mt:PAPageNum> of <mt:PAPageCount> <mt:PANextPage text="&#187;"></p></mt:PAIfMultiplePages>
<mt:Entries lastn="100">
<mt:PAEntry>
<div class="donors-row row">
<h3 class="column grid_12"><a href="<mt:EntryPermalink />"><mt:EntryTitle /></a></h3>
<mt:EntryAssets><div class="column grid_8"><mt:Else><div class="column grid_12"></mt:EntryAssets>
<p><mt:EntryExcerpt convert_breaks="0" /> <a href="<mt:EntryPermalink />">Read the full article</a></p>
</div>
<mt:EntryAssets lastn="1" sort_order="ascend">
<div class="column grid_4" style="margin-top: 14px;">
<img src="<mt:AssetThumbnailURL width='220' />" />
</div>
</mt:EntryAssets>
</div>
<mt:PAEnd>
</mt:Entries>
<MTPAIfMultiplePages><div style="text-align: center"><MTPAPreviousPage show="1"> <MTPAPageList> <MTPANextPage show="1"></div></MTPAIfMultiplePages>

Posted by: Wes Meltzer | July 18, 2013 8:53 AM

Hey Wes! mt:PAEnd should come after the mt:Entries closing tag.

Posted by: Alden | July 18, 2013 9:03 AM

Alden,

Aha! I see now. It works just fine having moved the location of the tag. Thanks much!

Posted by: Wes Meltzer | July 19, 2013 12:03 AM

Post a comment





Tetrap.com Site Map