movabletype.jp
検索

MTBlogCustomFields block tag new in mt5.0 Commercial

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

使い方

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

モディファイア

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

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