MTTopLevelCategories
現在のカテゴリに関わりなく、最上位のカテゴリを一覧するためのブロックタグです。
<mt:SubCategories top="1"> と記述することと同じ動作になります。
詳しくは MTSubCategories タグを参照してください。
- 使い方
<mt:TopLevelCategories>
<div class="archive">
<h2 class="primary-category"><$mt:CategoryLabel$></h2>
<mt:SubCategories>
<mt:if tag="CategoryCount">
<h3 class="archive-header"><a href="<$mt:CategoryArchiveLink$>"><$mt:CategoryLabel$></a></h3>
<div class="archive-content">
<mt:ArchiveList archive_type="Category-Monthly" sort_order="descend">
<mt:ArchiveListHeader>
<ul>
</mt:ArchiveListHeader>
<li><a href="<$mt:ArchiveLink$>"><$mt:ArchiveDate format="%B %Y"$> (<$mt:ArchiveCount$>)</a></li>
<mt:ArchiveListFooter>
</ul>
</mt:ArchiveListFooter>
</mt:ArchiveList>
</div>
</mt:if>
</mt:SubCategories>
</div>
</mt:TopLevelCategories>