MovableType
コンテンツデータアーカイブの一覧を表示する
アーカイブの出力方法
コンテンツデータで作成したコンテンツから、年度別ページへのリンクなどを出力する方法です。
MT6と同じく、MTArchiveListタグ を使用します。
指定できるアーカイブタイプは以下になります。
コンテンツタイプ 日別
ContentType-Daily
コンテンツタイプ 週別
ContentType-Weekly
コンテンツタイプ 月別
ContentType-Monthly
コンテンツタイプ 年別
ContentType-Yearly
コンテンツタイプ ユーザー別
ContentType-Author
コンテンツタイプ ユーザー 日別
ContentType-Author-Daily
コンテンツタイプ ユーザー 週別
ContentType-Author-Weekly
コンテンツタイプ ユーザー 月別
ContentType-Author-Monthly
コンテンツタイプ ユーザー 年別
ContentType-Author-Yearly
コンテンツタイプ カテゴリ別
ContentType-Category
コンテンツタイプ カテゴリ 日別
ContentType-Category-Daily
コンテンツタイプ カテゴリ 週別
ContentType-Category-Weekly
コンテンツタイプ カテゴリ 月別
ContentType-Category-Monthly
コンテンツタイプ カテゴリ 年別
ContentType-Category-Yearly
サンプルテンプレート
<mt:ArchiveList type="ContentType-Yearly" content_type="コンテンツタイプ名">
<mt:ArchiveListHeader>
<ul>
</mt:ArchiveListHeader>
<li><a href="<mt:ArchiveLink>"><mt:ArchiveTitle></a></li>
<mt:ArchiveListFooter>
</ul>
</mt:ArchiveListFooter>
</mt:ArchiveList>