Feigning normality since 1973
Paged Archives v1.31
Filed in: Movable Type.
Wow, I can't believe it's nearly nine months since the last PagedArchives update.
This version adds two parameters to the MTPASettings tag, and three new tags.
<MTPASettings numofentries="NN"> - PagedArchives does its best to work out how many entries there are on the archive page which it's splitting up. Sometimes it gets the count wrong, usually when the <MTEntries> tag has extra arguments to it. E.g., if you have <MTEntries limit="100">, you could specify <MTPASettings numofentries="100">. You can also use MT tags in the argument, such as <MTPASettings numofentries="<mt:EntriesCount />">
<MTPASettings pagelistlimit="NN"> - Normally <MTPAPageList> will just display a list of all the pages like "1 2 3 4 5 6 7 8 9 10", but if you specify a pagelistlimit of, for instance, 5, it will only display the current page number and two pages to either side (As in our example "... 3 4 5 6 7 ..."). Naturally if you're at the start of the list, you'll get the first five pages: "1 2 3 4 5 ...".
<MTPAFirstPage>, <MTPALastPage> - These work in the same way as <MTPANextPage> and <MTPAPreviousPage>, but create links to the first and last pages in the sequence, respectively.
<MTPAEntryExtra entrynumber="NN">Some HTML goes in here</MTPAEntryExtra> - When used within the <MTEntries> tag, this will limit the contained HTML to only appear on the NNth entry on each page. For instance, if you want your Google adverts to appear after the first entry on each page, you could slip in a <MTPAEntryExtra entrynumber="1">(Advert HTML)</MTPAEntryExtra> before the closing </MTEntries>. Note: this currently only works if there are no line breaks in the enclosed HTML.
I think that covers all the changes! As always, you can download PagedArchives on the Paged Archives page.
[Edit: as first published the first argument was erroneously listed as "entrycount" which it should have been "numofentries". My apologies for any problems caused.]
Posted March 4, 2008 8:08 PM
Post a comment