“Pagebute”, a pagination plugin for Movable Type

| No Comments | No TrackBacks

Pagebute” is one of the most popular plugin among Japanese Movable Type users.

It provides a pagination function to Movable Type when you are using “Static Publishing” profile (MT’s default publishing profile).

The plugin is developed by SKYARC System Co., Ltd,.

You can download the latest version from this link. (Version 3.4.3, for MT4 and MT5).

At first, I’ll show you a pagination sample with this page.

pagebute_1

This is a first page of the archives.

Number “1” has no link and another numbers have each link data.

In this line, “next” character has a link to the second page.

Let’s see the second page.

pagebute_2

This is a second page of the articles.

Before “1”, “previous” link words appears, and number “2” has no link.

Okay, here is a sample code. The image pages had been created by this code.

<MTPageContents count="10">
<MTEntries>
<MTEntriesHeader><dl></MTEntriesHeader>
<dt><$MTEntryTitle$></dt>
<dd><$MTEntryExcerpt$></dd>
<$MTPageSeparator$>
<MTEntriesFooter></dl></MTEntriesFooter>
</MTEntries>
</MTPageContents>
<MTIfPageBefore>
<span><$MTPageBefore delim="previous "$></span>
</MTIfPageBefore>
<$MTPageLists$>
<MTIfPageNext>
<span><$MTPageNext delim="next"$></span>
</MTIfPageNext>

With this plugin, all archive templates wil be divided to plural pages automatically.

You can use this plugin for free, whether  personal purpose or commercial purpose.

The plugin has a lot of tags, so I tried to translate each tags into English.

Please let me know if there are wron usage in English.

I hope many MT users use it and realize pagination at ease.

<MTPageContents>~</MTPageContents>

These are block tags to delimit datas.
You can set the area which will be divided by this plugin.

count="*"

You can set your number of displaying data(e.x. entries).
If you leave this modifer setting, 10 will be set as an initial number.

navi_count="11"

The attribute of number which defined by "MTPageLists".
If you leave this setting, 11 will be set to the variable.

<$MTPageSeparator$>

This function tag have to be used between <MTPageContets>.
This tag defines the position of dividing.

<$MTPageLists$>

This function tag will be replaced to link characters in each pages.

    delim="*"
        You can set a dividing character.
        If you don't use this attribute, "&nbsp;" will be applied.

    link_start="<li>"  
        You can set a starting tag before the number of pages.
        If you don't use this attribute, no character will be applied. 

    link_close="</li>" 
        You can set a ending tag after the number of pages.
        If you don't use this attribute, no character will be applied.

    show_always="0"  
        If you difine “0” to this modifier, no page-number will be displayed in case there is onle one page. Initially, if you leave this setting, there must be “1” number as a meaning of the first page.

<MTIfPageFirst>~</MTIfPageFirst>
     The link which links to the first page will be displayed, if the page is after the second page.

<MTIfPageBefore>~</MTIfPageBefore>
    When you write arbitrary words within this tags, the written data will be displayed if the page has a previous page.


<MTIfPageNext>~</MTIfPageNext> 
    When you write arbitrary words within this tags, the written data will be displayed if the page has a next page.

 
<MTIfPageLast>~</MTIfPageLast> 
    The link words which jump to the last page will be displayed. (In case there are plural pages)

<$MTPageFirst$>
    This tag will be replaced to the link which returns to the first page.


<$MTPageBefore$>
    This tag will be replaced to the link which returns to the previous page.

delim="*"
    You can set dividing characters which means "previous". If you don't set this attribute,  "&lt;&lt" will be applied.

<$MTPageNext$>
    This tag will be replaced to the link which goes to the next page.

delim="*"
    You can set dividing characters which means "next". If you don't set this attribute,  "&gt;&gt" will be applied.

<$MTPageLast$>
    This tag will be replaced to the link which jump to the last page.

<$MTPageCount$> (Ver.3.4.0 or upper)
    This tag will be replaced to the number of the current page.

<$MTPageMaxCount$> (Ver.3.4.0 or upper)
    This tag will be replaced to the maximum page number of current pagination.

Here are some attentions.

*Your blog have to have some articles (of course!)
*You can’t use another conditional branching logic within this pagenating plugin. For example, changing pagination characters with <mt:if> conditions.

No TrackBacks

TrackBack URL: http://www.mt-j.info/mt/mt-tb.cgi/55

Leave a comment

About this Entry

This page contains a single entry by nick published on March 19, 2010 10:00 PM.

“Gizmode Japanese edition” is published by Movbale Type was the previous entry in this blog.

“Grep”, picing up a variable’s data is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.