MovableType.net 逆引き辞典

<assets_per_row="N">内で行頭に実行するブロックタグ

ブロックタグ

mt:Asset内で利用可能

MT共通

<mt:AssetIsFirstInRow>

mt:Assets ブロックタグとあわせて使用し、画像の一覧を作成する際にmt:Assets ブロックタグ に設定した assets_per_row モディファイアで設定した一行に表示する件数に応じてコンテナした内容を表示します。
mt:AssetIsFirstInRow ブロックタグは、行頭にコンテナした内容を表示します。

タグリストのページ:<mt:AssetIsFirstInRow>

記述・出力サンプル

記述

<table>
<mt:Assets type="image" assets_per_row="5">
	<mt:AssetIsFirstInRow>
	<tr>
	</mt:AssetIsFirstInRow>
	    <td><mt:AssetThumbnailLink width="120"></td>
	<mt:AssetIsLastInrow>
	</tr>
	</mt:AssetIsLastInrow>
</mt:Assets>
</table>

出力

サンプルサイト設定上でのテンプレート出力サンプルです。

関連ページ