A container tag representing a list of Media Manager entries. The actual list can be configured using the optional attributes to this tag. The default is to display all entries. To alter this behavior, you can provide one of the following attributes:
N
entries (according to sort_order
and sort_by
below), where N
is some number greater than 0.M
entries from the first (according to sort_order
and sort_by
below), then displays the remaining entries (or the next N
entries if used in combination with lastn
). For example, the following tag will display entries 6-10 (inclusively):
<MTMediaManagerItems lastn="5" offset="5"> ... </MTMediaManagerItems>
unread
, reading
and read
. If no status
attribute is given, entries are displayed regardless of status.entry_id
attribute.entry_id
. Cannot be used with the isbn
attribute.<MTMediaManagerItems>
tag. Valid values are ascend
and descend
. The default value is descend
.status
, isbn
, entry_id
, modified_on
, finished_on
and entered_on
. You can specify an arbitrary sort order for your entries by overriding the ''last modified on" field in the Media Manager interface and sorting by modified_on
. If you sort by entry_id
, entries without an associated blog entry id will be skipped. The default value is entered_on
(the date on which the entry was originally entered).Attributes of MTMediaManagerItems
can be combined in arbitrary ways. For example, the following tag will take all entries with status set to ''unread", sort them in ascending order according to the last modified date and display items 11 through 20 (inclusive) of that set.
<MTMediaManagerItems lastn="10" offset="10" status="unread" sort_order="ascend" sort_by="modified_on"> ... </MTMediaManagerItems>
Returns the numbers of items in the current selection as defined by the constaints passed to MTMediaManagerItems.
The ASIN (Amazon ID) of the entry.
The status of the entry (''unread", ''reading" or ''read").
The catalog the current item belongs to.
The URL to an icon of the catalog the item belongs to. Examples include:
The date on which the entry was entered. This tag takes an optional format
attribute. If format
is omitted, the language-specific default format taken from the blog configuration will be used. See Date Tag Formats and Language for date display in the Movable Type documentation for more information.
The date on which the was finished being read. This tag takes an optional format
attribute. If format
is omitted, the language-specific default format taken from the blog configuration will be used. See Date Tag Formats and Language for date display in the Movable Type documentation for more information.
The date on which the entry was last modified. This tag takes an optional format
attribute. If format
is omitted, the language-specific default format taken from the blog configuration will be used. See Date Tag Formats and Language for date display in the Movable Type documentation for more information.
The entry id of the blog entry associated with the entry. See the Movable Type documentation for MTEntryID for more information.
An absolute URL pointing to the archive page containing the blog entry associated with the entry. This tag takes an optional attribute archive_type
to specify the archive type to link to.
See the Movable Type documentation for MTEntryLink for more information.
An absolute URL pointing to the archive page containing the blog entry associated with the entry with an anchor (#) pointing to the actual entry (by ID). This tag takes an optional attribute archive_type
to specify the archive type to link to.
See the Movable Type documentation for MTEntryLink and MTEntryPermaLink for more information.
A container tag: the contents of this container will be displayed only if this entry has a blog entry associated with it. In the following example, the "book review" link will only appear for book entries which have an associated blog entry id.
<MTMediaManagerItems> ... <MTItemIfBlogEntry> <a href="<MTItemEntryLink>">book review</a> </MTItemIfBlogEntry> </MTMediaManagerItems>
Returns true if the current item has a "finished on" date.
Below is a steadily growing list of examples of how people have used Media Manager's template tags.
<h2>What I Am Reading</h2> <MTBookQueueEntries status="reading" sort_order="descend" sort_by="modified_on" catalog="Books"> <div class="amazonItem"> <MTAmazon method="Asin" search="[MTBookQueueEntryISBN]"> <a href="<MTAmazonLink>"> <img src="<MTAmazonSmallImage>" border="0" alt="<MTAmazonTitle>" /> </a> <p><a href="<MTAmazonLink>"><MTAmazonTitle></a><br /> by <MTAmazonAuthor></p> </MTAmazon> </div> </MTBookQueueEntries>
<h2>What I Am Reading</h2> <MTBookQueueEntries status="reading" sort_order="descend" sort_by="modified_on" catalog="Music"> <div class="amazonItem"> <MTAmazon method="Asin" search="[MTBookQueueEntryISBN]"> <a href="<MTAmazonLink>"> <img src="<MTAmazonSmallImage>" border="0" alt="<MTAmazonTitle>" /> </a> <p><a href="<MTAmazonLink>"><MTAmazonTitle></a><br /> by <MTAmazonAuthor></p> </MTAmazon> </div> </MTBookQueueEntries>