MTPaginate Template Example

I have been using MTPaginate on 35togo for quite some time now but I remember having some trouble in the past to get it to work on pages that are primarily text. I can’t remember why this caused so much trouble on that particular client project because it was remarkably easy to get it to work.
My purpose for using MTPaginate was simply to decrease the size of some of my archive pages and to allow for a longer list of entries on my index page ala Gizmodo (and a million other sites). For the archives the benefit is smaller more manageable pages, for the index page it reduces the need for people to enter the archives – those who don’t subscribe to all the feeds on the sight can still get a quick scan of all I have posted over the past 2 weeks.
Here are the tags I used, ignore all the fluffy div stuff:
<div id="content">
<MTPaginateContent max_sections="6">
<div class="date"><MTEnglishOrdinal number='[MTEntryDate format="%d"]'>
<br /><$MTEntryDate format="%b %Y"$></div></MTDateHeader>
<div id="entries">
<h3><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></h3>
<p class="entry-more-link">
<a href="<$MTEntryPermalink$>#more">Continue reading: "<$MTEntryTitle$>" »</a>
<div id="tags">
<MTIfCommentsActive><a href="<$MTEntryPermalink$>#comments" class="clink">Comments (<$MTEntryCommentCount$>)</a></MTIfCommentsActive> <a href="<$MTEntryPermalink$>" class="plink">Perma-link</a> <span class="tlink"><MTEntryTags><a href="<MTTagArchiveLink>" title="<MTTagDescription>"><MTTagName></a>&nbsp &nbsp</span>
<div id="pages">
<a href="<$MTPaginateNextPageLink$>" class="emphasis">Next Page</a>
<a href="<$MTPaginatePreviousPageLink$>" class="emphasis">Previous Page</a>

  • Ignore the problems with the mark-up, the paginate stuff works. :)