scriptygoddess RSS Feed
 
 
 
 

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)

11 Responses to “MT Paginate”

  1. 1
    life of nicole lee:
    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…

  2. 2
    Sweety:

    It's working great! Thanks for sharing.

  3. 3
    Fresh Bilge:
    MTPaginate
    Moveable Type is known as a user-friendly data management system….

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

  5. 5
    S.K:

    Thanks!
    Nice of you!
    S.K

  6. 6
    Christoph C. Cemper:

    Hmmm… I guess the link to MTPaginate is dead…

    regards,christoph

  7. 7
    Jennifer:

    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…

  8. 8
    Jenni:

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

  9. 9
    Nicole Lee:

    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?

  10. 10
    Jennifer:

    S.K. – Just updated the post for you

  11. 11
    S.K:

    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

Categories

Archives

Bookmarks

WordPress Resources

Meta

ADVERTISEMENTS