The <ArchiveList> container is used to generate a list of the weblog’s archive pages. The ArchiveList container takes the form...
<ArchiveList>
<$ArchiveName$>
<$ArchiveLink$>
</ArchiveList>
This container works like a loop in that the inner value of the container is printed for each archive page.
The ArchiveList container can take the following attributes…
<$ArchiveName$> - Replaced with the name of the archive
(e.g June 2004)
<$ArchiveLink$>
- Replaced with the URL of the
archive page.
As an example, let’s say you wanted to generate a comma-separated list of links to the archive pages. You’d use the following code…
<ArchiveList sort_order="ascend" glue="," format="dd/mm/yy" span="1">
<a href="<$ArchiveLink$>"><$ArchiveName$></a>
</ArchiveList>
<ArchiveYears>
The <ArchiveYears> container generates a list of years and archive pages. The syntax is:
<ArchiveYears sort_order="descend">
<$Year$>
<ArchiveYear>
<$ArchiveLink$><$ArchiveName$>
</ArchiveYear>
</ArchiveYears>
Example: generating a yearly list of weblog archives
<ul>
<ArchiveYears sort_order="descend">
<li><$Year$></li>
<ul>
<ArchiveYear>
<li><a href="<$ArchiveLink$>"><$ArchiveName$></a></li>
</ArchiveYear>
</ul>
</ArchiveYears>
</ul>
Note: Archive lists have no meaning on the Feed Template