12-6 カテゴリアーカイブにサブカテゴリのブログ記事を表示する

226ページ

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

...前略...
<mt:EntriesWithSubCategories limit="$limit">
  <mt:Ignore><!-- Use the Entry Summary module for each entry published on this page -->
</mt:Ignore>
  <$mt:Include module="ブログ記事の概要"$>
</mt:EntriesWithSubCategories>
...後略...

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

...前略...
<mt:Entries>
  <mt:EntriesFooter>
    <mt:GetVar name="__counter__" setvar="self_entries_count" />
  </mt:EntriesFooter>
<mt:else>
  <mt:SetVar name="self_entries_count" value="0" />
</mt:Entries>
<mt:EntriesWithSubCategories>
  <mt:EntriesFooter>
    <mt:GetVar name="__counter__" setvar="entries_count" />
  </mt:EntriesFooter>
<mt:else>
  <mt:SetVar name="entries_count" value="0" />
</mt:EntriesWithSubCategories>
<mt:unless name="self_entries_count">
  <mt:if name="entries_count">
    <mt:EntriesWithSubCategories limit="$limit">
      <mt:Include module="ブログ記事の概要" />
    </mt:EntriesWithSubCategories>
  </mt:if>
<mt:else>
  <mt:Entries limit="$limit">
    <mt:Ignore><!-- Use the Entry Summary module for each entry published on this page--></mt:Ignore>
    <$mt:Include module="ブログ記事の概要"$>
  </mt:Entries>
</mt:unless>
...後略...

227ページ

「カテゴリアーカイブ」ウィジェットテンプレート

<mt:IfArchiveTypeEnabled archive_type="Category">
<div class="widget-archive widget-archive-category widget">
  <h3 class="widget-header">カテゴリ</h3>
  <div class="widget-content">
  <mt:TopLevelCategories>
    <mt:SubCatIsFirst>
    <ul>
    </mt:SubCatIsFirst>
    <mt:hasSubCategories>
      <mt:EntriesWithSubCategories>
        <mt:EntriesFooter>
          <mt:GetVar name="__counter__" setvar="entries_count" />
        </mt:EntriesFooter>
      <mt:else>
        <mt:SetVar name="entries_count" value="0" />
      </mt:EntriesWithSubCategories>
    </mt:hasSubCategories>
    <mt:if name="entries_count">
      <li><a href="<mt:CategoryArchiveLink />" title="<mt:CategoryDescription />"><mt:CategoryLabel></a> <mt:hasSubCategories>[<mt:GetVar name="entries_count" />]<mt:else>[<mt:CategoryCount />]</mt:hasSubCategories>
    <mt:else>
      <mt:If tag="CategoryCount">
<li><a href="<$mt:CategoryArchiveLink$>"<mt:If tag="CategoryDescription"> title="<$mt:CategoryDescription remove_html="1" encode_html="1"$>"</mt:If>><$mt:CategoryLabel$>(<$mt:CategoryCount$>)</a>
      <mt:Else>
      <li><$mt:CategoryLabel$>
      </mt:If>
    </mt:if>
    <$mt:SubCatsRecurse$>
      </li>
    <mt:SubCatIsLast>
    </ul>
    </mt:SubCatIsLast>
  </mt:TopLevelCategories>
  </div>
</div>
</mt:IfArchiveTypeEnabled>

229ページ

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

...前略...
<mt:hasNoParentCategory>
  <mt:SubCategories>
<h2 class="comments-header"><a href="<mt:CategoryArchiveLink />"><mt:CategoryLabel />
</a>カテゴリのブログ記事</h2>
<ul>
    <mt:Entries>
  <li><a href="<mt:EntryPermalink />"><mt:EntryTitle /></a></li>
    </mt:Entries>
</ul>
  </mt:SubCategories>
<mt:else>
  <mt:Entries limit="$limit">
    <mt:Ignore><!-- Use the Entry Summary module for each entry published on this page--></mt:Ignore>
    <$mt:Include module="ブログ記事の概要"$>
  </mt:Entries>
</mt:hasNoParentCategory>
...後略...

このアーカイブについて

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