<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>MovableType備忘メモ by クタシキ</title>
    <link rel="alternate" type="text/html" href="http://movabletype.kutashiki.com/" />
    <link rel="self" type="application/atom+xml" href="http://movabletype.kutashiki.com/atom.xml" />
    <id>tag:movabletype.kutashiki.com,2007-11-19://2</id>
    <updated>2007-11-19T15:00:37Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Publishing Platform 4.01</generator>

<entry>
    <title>カテゴリーの並び順を制御する。（pmHeadChanger を MT4 で使ってみた）</title>
    <link rel="alternate" type="text/html" href="http://movabletype.kutashiki.com/e/000003.html" />
    <id>tag:movabletype.kutashiki.com,2007://2.3</id>

    <published>2007-11-19T14:48:07Z</published>
    <updated>2007-11-19T15:00:37Z</updated>

    <summary> MovableType の標準機能ではカテゴリーの並び順を制御することはできま...</summary>
    <author>
        <name>kutashiki</name>
        
    </author>
    
        <category term="200)カテゴリー関連" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://movabletype.kutashiki.com/">
        <![CDATA[<p>
MovableType の標準機能ではカテゴリーの並び順を制御することはできませんが、pmHeadChanger というプラグインを使用することでカテゴリーを思い通りの並び順を制御することができます。<br/>
 <br/>
ちなみにプラグインの作者の pmLabo さんの<a href="http://pmlabo.com/archives/2004/12/post_21.html" target="_blank">ダウンロードページ</a>では（※MT ver.3.2ja2まで動作確認済）と書かれていますが、MovableType4.01にインストールしたところ、問題なく動作しています。
</p>

<h4>インストール</h4>

<p>
１．pmLabo さんからプラグインをダウンロード<br/>
ここから→<a href="http://pmlabo.com/archives/2004/12/post_21.html" target="_blank">MovableTypeのカテゴリーソートに使える数字置換プラグイン</a><br/>
 <br/>
２．ダウンロードファイルを解凍したら、pm_headchanger.pl を下記ディレクトリに格納する
</p>

<pre class="common">
/MovableTypeインストールディレクトリ/plugins/
</pre>

<h4>使い方</h4>

<p>
１．カテゴリーを作成する際に、カテゴリー名を以下の書式で指定します。
</p>

<pre class="usage">
数字)カテゴリー名
</pre>

<p>
２．カテゴリー名称を表示するページでは、MTCategoryLabel を以下の書式で指定します。
</p>
<pre class="usage">
&lt;$MTCategoryLabel pmhc="置換文字列"$&gt;
</pre>

<p>
手順は以上の通りです。<br/>
具体的な使用例は以下の通り。
</p>

<h4>使用例１</h4>
<pre class="common">
・MovableType のカテゴリー作成時に指定したカテゴリー名称
500)プラグイン

・テンプレート上のタグ
&lt;$MTCategoryLabel pmhc="○"$&gt;

・画面上の表示
○プラグイン
</pre>

<p>
置換文字列にはもちろん空文字も指定できます。
</p>

<h4>使用例２</h4>
<pre class="common">
・MovableType のカテゴリー作成時に指定したカテゴリー名称
500)プラグイン

・テンプレート上のタグ
&lt;$MTCategoryLabel pmhc=""$&gt;

・画面上の表示
プラグイン
</pre>

<p>
ＭＴ３からお世話になっていますが、シンプルなのにとても便利なプラグインですね。
</p>]]>
        
    </content>
</entry>

</feed>
