movabletype.jp
検索

MTCategoryCustomFields block tag new in mt4.1 Commercial

カテゴリに関するカスタムフィールドの情報を表示するためのブロックタグです。カテゴリ編集画面に追加された、全てのフィールドの情報を表示します。include モディファイアに名前を指定したカスタムフィールドを表示します。exclude モディファイアに名前を指定したカスタムフィールドは表示しません。特定のカスタムフィールドだけを表示したいときは、個別のテンプレートタグを使用してください。

使い方

<MTCategoryCustomFields>
    <ul>
        <MTIfNonEmpty tag="CategoryCustomFieldValue">
            <li><$MTCategoryCustomFieldName$>: <$MTCategoryCustomFieldValue$></li>
        </MTIfNonEmpty>
    </ul>
</MTCategoryCustomFields>

モディファイア

include="フィールドの名前"

指定した名前のフィールドの情報を表示するようにします。

exclude="フィールドの名前"

指定した名前のフィールドの情報を表示しないようにします。

Updated on 2010-07-26, 16:32 .

Movable Type 関連書籍