Archive Tags
Archive tags display information about your weblog archives.
Container Tags
- MTArchiveList:
<MTArchiveList>
- A container tag representing a list of the archives in your weblog.
<MTBlogIfArchives>
<h2><a href="<$MTBlogURL$>archives.html"><$MTTrans phrase="Archives"$></a></h2>
<ul>
<MTArchiveList best_archive_type="1" lastn="10">
<li><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li>
</MTArchiveList>
</ul>
</MTBlogIfArchives>
- MTBlogIfArchives:
<MTBlogIfArchives>
- A container tag that only displays its contents if archives are enabled for your weblog. This prevents an empty archive list from being displayed if you do not have archives.
- MTArchivePrevious:
<MTArchivePrevious>
- A container tag that changes the context to the previous archive. This is used on your archive templates to create navigation links.
<MTArchivePrevious> <a href="<$MTArchiveLink$>">« <$MTArchiveTitle$></a> | </MTArchivePrevious>
- MTArchiveNext:
<MTArchiveNext>
- A container tag similar to MTArchivePrevious, except that it changes the context to the next archive.
<MTArchiveNext> | <a href="<$MTArchiveLink$>"><$MTArchiveTitle$> »</a> </MTArchiveNext>
Variable Tags
- MTArchiveLink:
<$MTArchiveLink$>
- the URL of the archive that is being linked to.
- MTArchiveTitle:
<$MTArchiveTitle$>
- the title of the archive.
- MTArchiveCategory:
<$MTArchiveCategory$>
- the category of the archive.
- MTArchiveCount:
<$MTArchiveCount$>
- the number of posts in a given date-based archive.
- MTArchiveDate:
<$MTArchiveDate$>
- the date of a date-based archive. For weekly archives, this gives the start date
- MTArchiveDateEnd:
<$MTArchiveDateEnd$>
- the end date of a weekly archive.
Copyright © 2003-2005 Six Apart