Assets
A container tag which iterates over a list of assets.
Attributes:
- type
Specifies a particular type(s) of asset to select. This may be one of image, audio, video (if unspecified, will select all asset types). Supports a comma-delimited list.
- file_ext
Specifies a particular file extension to select. For instance, gif, mp3, pdf, etc. Supports a comma-delimited list.
- days
Selects assets created in the last number of days specified.
- author
Selects assets uploaded by a particular author (where the author's username is given).
- lastn
Limits the selection of assets to the specified number.
- limit
a positive integer to limit results.
- offset
Used in coordination with lastn, starts N assets from the start of the list. N is a positive integer.
- tag
Selects assets with particular tags (supports expressions such as "interesting AND featured").
- sort_by
Supported values: file_name, created_by, created_on, score.
- sort_order
Supported values: ascend, descend.
- namespace
Used in conjunction with the sort_by attribute when sorting in "score" order. The namespace identifies the method of scoring to use in sorting assets.
- assets_per_row
When publishing a grid of thumbnails, this attribute sets how many iterations the Assets tag publishes before setting the state that enables the AssetIsLastInRow tag. Supported values: numbers between 1 and 100. Also supported is the keyword "auto" which selects the most aesthetically pleasing number of items per row based on the total number of assets. For example, if you had 18 total assets, three rows of six would publish, but for 16 assets, four rows of four would publish.
Example:
<mt:Assets lastn="10" type="image" tag="favorite">
<a href="<mt:AssetURL>">
<img src="<mt:AssetThumbnailURL height="70">"
alt="<mt:AssetLabel escape="html">"
title="<mt:AssetLabel escape="html">" />
</a>
</mt:Assets>

Jay Allen
November 1, 2007 7:59 PM | Reply
This tag supports the MultiBlog template tag attributes blog_ids/include_blogs and exclude_blogs for aggregating across different blogs.