movabletype.jp
検索

MTBlogCustomFields block tag new in mt5.0 Commercial

ブログ システムオブジェクトに追加した、カスタムフィールドを一覧で表示するブロックタグです。追加した全てのカスタムフィールドを表示します。include モディファイアに名前を指定したカスタムフィールドを表示します。exclude モディファイアに名前を指定したカスタムフィールドは表示しません。特定のカスタムフィールドだけを表示したいときは、個別のテンプレートタグを使用してください。

使い方

<mt:BlogCustomFields>
  <ul>
<mt:IfNonEmpty tag="BlogCustomFieldValue">
    <li><$mt:BlogCustomFieldName$>: <$mt:BlogCustomFieldValue$></li>
</mt:IfNonEmpty>
  </ul>
</mt:BlogCustomFields>

モディファイア

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

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

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

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

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

Movable Type 関連書籍