MTPaginate

MT-4 でもページ分割をするプラグインを導入。手順は MT-3系 と同じ。

MTPaginate = 1ページに表示するには多い(かもしれない)記事を [ All Pages | 1 | 2 | 3 | 4 | ...] といったように分割表示する プラグイン。

  1. PHP化
    まずは PHP化 が必須。 [ ブログの設定 / 公開 ] で アーカイブの拡張子 を php にして保存し再構築。
  2. ファイルのダウンロード
  3. ファイルの設置
    MTPaginate.pl を以下に設置。

    (MTDIR)/plugins/MTPaginate.pl

  4. テンプレート編集
    [ 環境設定 / テンプレート / アーカイブ ] で Category Archive へ次のように記述。

    <div class="content">
    <MTPaginate>
    <MTPaginateContent max_sections="10" >
    <MTEntries>
        :
    <$MTPaginateSectionBreak$>
    </MTEntries>

    </MTPaginateContent>
    <MTPaginateIfMultiplePages>
    <div class="posted">
    <$MTPaginateNavigator style="links" format_all="All pages" place_all="after" separator=" | ">
    </div>
    </MTPaginateIfMultiplePages>
    </MTPaginate>
    </div>
    </div>

  5. 再構築
    ページ分割したいテンプレート全てに記述し終えたら [ サイトを再構築 ] します。

Reference :

Post a Comment

Please enter the letter x in the box at left.

Archives

377 posts since December 1999.