scriptygoddess

02 Jan, 2004

MT Paginate

Posted by: Jennifer In: MT Plugins

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)

11 Responses to "MT Paginate"

1 | S.K

January 7th, 2004 at 4:52 pm

Avatar

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

2 | Jennifer

January 7th, 2004 at 8:56 pm

Avatar

S.K. – Just updated the post for you

3 | S.K

January 8th, 2004 at 10:28 pm

Avatar

Thanks!
Nice of you!
S.K

4 | Christoph C. Cemper

January 11th, 2004 at 10:33 am

Avatar

Hmmm… I guess the link to MTPaginate is dead…

regards,christoph

5 | Jennifer

January 11th, 2004 at 11:00 am

Avatar

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…

6 | Jenni

January 30th, 2004 at 8:03 pm

Avatar

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. :)

7 | Nicole Lee

March 10th, 2004 at 8:49 pm

Avatar

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?

8 | Sweety

March 21st, 2004 at 1:56 pm

Avatar

It's working great! Thanks for sharing.

9 | Fresh Bilge

February 18th, 2004 at 10:45 pm

Avatar

MTPaginate
Moveable Type is known as a user-friendly data management system….

10 | Bloggie Broad

March 1st, 2004 at 6:41 pm

Avatar

Bloggie Scripty Reverb
BB's Script, Plugin and Hack Archive as of 3/1/04: Collapse…

11 | life of nicole lee

March 10th, 2004 at 6:00 pm

Avatar

Tweaks galore
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…

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements