MT4のPHP化は面倒なので、.htaccessで対応。
AddType application/x-httpd-php .html
MTPagenate1.28 をダウンロード。
解凍したファイルのpluginフォルダのMTPagenateディレクトリをMTのpluginディレクトリへアップ。
テンプレートのメインページを次のように修正。
<!-- ここから -->
<MTPaginate>
<MTPaginateContent max_sections="5">
<mt:Entries>
<mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore>
<$mt:Include module="ブログ記事の概要"$>
<$MTPaginateSectionBreak$>
</mt:Entries>
</MTPaginateContent>
<MTPaginateIfMultiplePages>
<div class="content-nav">
<MTPaginateIfNextPage_>
<a href="<$MTPaginateNextPageLink$>">Previous</a>
<MTPaginateIfPreviousPage_>
|
</MTPaginateIfPreviousPage_>
</MTPaginateIfNextPage_>
<!-- <$MTPaginateNavigator style="links" format_all="All pages" place_all="after" separator=" | "> -->
<MTPaginateIfPreviousPage_>
<a href="<$MTPaginatePreviousPageLink$>">Next</a>
</MTPaginateIfPreviousPage_>
</div>
</MTPaginateIfMultiplePages>
</MTPaginate>
<!-- ここまで -->
「ブログ記事の表示数」をmax_sections より大きくする。
こんなもんかな・・・
recent comments