MT Paginate
MT Paginate: Just implemented this plugin on another (lesser known) site I run. Very easy - Very cool. I was easily able to take my category archives and paginate them so that one page wasn't loading tons and tons of entries (there was one category that was more "top heavy" than the others). The pagination won't show up unless the archive needs it. Very well done!!
[Found on MT-Plugins.org]
As requested, I'll give a little more info. Promise you won't laugh. I have a Vin Diesel fan blog. The "misc." picture category was getting out of hand - so I wanted to paginate it so that all misc. photos wouldn't load up on the one page (there's ALOT of them… ok, you promised you wouldn't laugh!!) ;o)
First - to install the plugin - you need to upload it into your plugins folder (in your MT folder)
Here's what the main content on that template looks like (the MTPaginate tags are in bold)
<p align="center">| <a href="<$MTBlogURL$>">Main</a> |</p>
<h1 align="center">~~ <$MTArchiveCategory$> ~~</h1>
<MTPaginate>
<!–The next part is what generates the "page navigation" –>
<MTPaginateIfMultiplePages>
<p><$MTPaginateNavigator style="links" format="%d" $></p>
</MTPaginateIfMultiplePages>
<!– This part determines how many posts will go on the page, I set it to 10 –>
<MTPaginateContent max_sections="10">
<MTEntries>
<$MTEntryTrackbackData$>
<MTDateHeader>
<h1><$MTEntryDate format="%x"$></h1>
</MTDateHeader>
<div class="blogbody">
<a name="<$MTEntryID pad="1"$>"></a>
<p><b><$MTEntryTitle$></b></p>
<$MTEntryBody$>
<MTEntryIfExtended>
<$MTEntryMore$>
</MTEntryIfExtended>
<p>
<a href="<$MTEntryPermalink$>"><$MTEntryDate format="%X"$></a>
<MTEntryIfAllowComments>
| <a href="<$MTEntryPermalink$>#comments">Comments (<$MTEntryCommentCount$>)</a>
</MTEntryIfAllowComments>
<MTEntryIfAllowPings>
| <a href="<$MTCGIPath$><$MTTrackbackScript$>?__mode=view&entry_id=<$MTEntryID$>" onclick="OpenTrackback(this.href); return false">TrackBack</a>
</MTEntryIfAllowPings>
</p>
<$MTPaginateSectionBreak$>
</MTEntries>
</MTPaginateContent>
</MTPaginate>
A little more explanation of the page navigation tag:
<$MTPaginateNavigator style="links" format="%d" $>
There can be other values for "style" and "format". I have mine set to "links" because I wanted text links, instead of a pop-up menu. Format is how the text links are structred. I just wanted the numbers, but if you wanted it to display like: "Page 1 | Page 2 | Page 3.. etc." the value of format would have been "Page %d"
From what I could tell from the documentation, there are many other ways to use this. For example, if you have very long posts, you could paginate the content of a specific post (or at least that's what it looked like. I haven't tried it so I can't say for sure)
January 7th, 2004 at 4:52 pm
Could you please provide a link to the category-based archive page in which you have implemented pagination and also give a tutorial to a dummy as to how you implemented it.
Thanks
Regards
S.K
January 7th, 2004 at 8:56 pm
S.K. - Just updated the post for you
January 8th, 2004 at 10:28 pm
Thanks!
Nice of you!
S.K
January 11th, 2004 at 10:33 am
Hmmm… I guess the link to MTPaginate is dead…
regards,christoph
January 11th, 2004 at 11:00 am
I'm getting through just fine - I know there's been a few times I've gone there and he's been upgrading his site or something - but i tested the link just now and it works fine…
January 30th, 2004 at 8:03 pm
Jenn, thanks so much for the MTPaginate category page template! I'm getting complaints about overloaded pages now that my blog archives are a bit large, but I was confused over how to set it up.
February 18th, 2004 at 10:45 pm
Moveable Type is known as a user-friendly data management system….
March 1st, 2004 at 6:41 pm
BB's Script, Plugin and Hack Archive as of 3/1/04: Collapse…
March 10th, 2004 at 6:00 pm
So some of you may have noticed that the site looks a little different now; not too different, just a little. These are the following changes I made to the site: I implemented a 3-column CSS layout. I got the…
March 10th, 2004 at 8:49 pm
I'd like the PageNavigation to be both at the top and the bottom of the page. I'm having some trouble doing this right. Please help?
March 21st, 2004 at 1:56 pm
It's working great! Thanks for sharing.