PageNumber plugin is the outputs Previous, Next and Current page number for Movable Type.
Installed plugin should look like this:
$MT_HOME/
plugins/
PageNumber/
Output the current page number.
Output the previous page number from the current page.
Output the next page number from the current page.
Change the URL to be output when use the Pagination for Static.
- mt.cgi: http://www.example.com/mt/mt.cgi
- blog_id: 2
- BlogURL: http://www.example.com/blog/
- entries_per_page: 10
- Main Index template_id: 333
<$mt:Var name="entries_per_page" value="10"$>
<mt:Entries limit="$entries_per_page" search_results="1">
<mt:EntriesHeader>
<ul>
</mt:EntriesHeader>
<li><a href="<$mt:EntryPermalink encode_html="1"$>"><$mt:EntryTitle$></a></li>
<mt:EntriesFooter>
</ul>
</mt:EntriesFooter>
</mt:Entries>
<mt:Include module="Pagination">
<mt:SetVarBlock name="pagination_navigation">
<mt:If name="search_results">
<mt:IfPreviousResults>
<li><a rel="prev" href="<$mt:BlogURL$><$mt:PreviousPageNumber$>">Previous</a></li>
</mt:IfPreviousResults>
<mt:IfMoreResults>
<li><a rel="next" href="<$mt:BlogURL$><$mt:NextPageNumber$>">Next</a></li>
</mt:IfMoreResults>
<mt:Else>
<$mt:BlogEntryCount setvar="total_entries"$>
<mt:If name="total_entries" gt="$entries_per_page">
<li><a rel="next" href="<$mt:BlogURL$>2">Next</a></li>
</mt:If>
</mt:If>
</mt:SetVarBlock>
<$mt:Var name="pagination_navigation" strip=" " trim="1" setvar="pagination_navigation"$>
<nav>
<ul>
<$mt:Var name="pagination_navigation"$>
<ul>
</nav>
</mt:If>
RewriteEngine on
RewriteBase /
RewriteRule ^([0-9]+)$ mt/mt-search.cgi?IncludeBlogs=2&template_id=333&limit=10&archive_type=Index&page=$1[L]
http://www.example.com/mt/mt-search.cgi?IncludeBlogs=2&template_id=333&limit=10&archive_type=Index&page=2[L]
http://www.example.com/blog/2
This plugin is licensed under the Artistic license and GPL v2.