AssetIsFirstInRow
Type: block
Conditional tag that displays its contents if the asset in context is the first item in the row in context when publishing a grid of assets (e.g. thumbnails). Grid of assets can be created by specifying assets_per_row attribute value to MTAssets block tag.
For example, the first, the fourth and the seventh asset are the first assets in row when MTAssets iterates eight assets and assetsperrow is set to "3".
Example
<table>
<mt:Assets type="image" assets_per_row="4">
<mt:AssetIfFirstItemInRow><tr></mt:AssetIfFirstItemInRow>
<td><mt:AssetThumbnailLink /></td>
<mt:AssetIfLastItemInRow></tr></mt:AssetIfLastItemInRow>
</mt:Assets>
</table>

Leave a note