In a <tpl:Archives> loop, the content within this tag will only be displayed at the first loop occurrence. When using it with <tpl:ArchivesFooter> you can insert an HTML block only if the loop contains something.
This example inserts the blog archives in a block and adds a title before the list.
<tpl:Archives>
<tpl:ArchivesHeader>
<div>
<h2>Archives</h2>
<ul>
</tpl:ArchivesHeader>
<li>{{tpl:ArchiveDate}}</li>
<tpl:ArchivesFooter>
</ul>
</div>
</tpl:ArchivesFooter>
</tpl:Archives>
Wiki powered by Dokuwiki.