Nucleusのトップページやカテゴリーページに次ページへのリンクを表示する「NP_PageSwitch.php」



MovableTypeのMTPaginateにあたるのが、この「NP_PageSwitch.php」で、これを導入することにより、以下の画像のように指定した箇所に次ページへのリンクを表示させることができます。


「NP_PageSwitch.php」のダウンロードは以下から。

plugins:pageswitch [Nucleus CMS Japan Wiki]


  1. 「NP_PageSwitch.php」を作成

  2. plugins:pageswitch:np_pageswitch_code [Nucleus CMS Japan Wiki]に表示されているコードをコピーし、「NP_PageSwitch.php」という名前のファイルを作成。
  3. プラグインディレクトリへアップロード

  4. プラグイン管理よりインストール

  5. スキンへ記述

  6. 「スキン編集」→「メインの目次ページ」より、次ページへのリンクを指定したい場所に記述をする。


    <%parsedinclude(head.inc)%>
    <%parsedinclude(header.inc)%>
    <%parsedinclude(sidebar.inc)%>
    <%parsedinclude(main.inc)%>

    <%if(PageSwitch,limit,3)%>ページ移動
    <%PageSwitch(prev,前へ)%>>
    <%PageSwitch(index,3)%>>
    <%PageSwitch(next,次へ)%>
    Page <%PageSwitch(num)%> of <%PageSwitch(total)%>
    <%endif%>

    <%parsedinclude(footer.inc)%>

    <%PageSwitch(index,3)%>>の場合

    <%PageSwitch(index,4)%>>の場合



  • Posted: 04/06/08 03:58PM
  • Category: Nucleus