12-9 カテゴリアーカイブページのデザインをカテゴリ別に切り替える

234ページ

「カテゴリ別ブログ記事リスト」アーカイブテンプレート

<mt:CategoryDescription setvar="category_description" />
<mt:if name="category_description" like="お知らせ|イベント">
  <mt:Include module="$category_description"$>
<mt:else>
  <mt:Include module="その他のカテゴリ" />
</mt:if>

235ページ

「カテゴリ別ブログ記事リスト」アーカイブテンプレート

<mt:CategoryLabel setvar="category_label" />
<mt:Include module="$category_label"$>

カテゴリ専用のテンプレートモジュール

<link rel="stylesheet" href="<mt:BlogURL />cat_<mt:CategoryID />.css" type="text/css"
media="screen,tv" />

「カテゴリ別ブログ記事リスト」アーカイブテンプレート

<mt:ifCategory name="デザイン">
  <mt:include module="デザインカテゴリ" />
<mt:else>
  <mt:ifCategory name="お知らせ">
    <mt:include module="お知らせカテゴリ" />
  <mt:else>
    <mt:include module="デフォルトカテゴリ" />
  </mt:ifCategory>
</mt:ifCategory>

このアーカイブについて

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。