9-1 記事の一覧をタイトルの番号順にソートする
174ページ
「ページ一覧」ウィジェットテンプレート
<mt:ifArchiveTypeEnabled archive_type="Page">
<mt:if tag="BlogPageCount">
<mt:BlogPageCount setvar="page_count" />
<mt:Pages lastn="$page_count">
<mt:if tag="PageTitle" like="^\d\..*">
<mt:SetVarBlock name="key"><mt:PageTitle escape="html" regex_replace="/^(\d)\..*/","0$1" /></mt:SetVarBlock>
<mt:elseIf tag="PageTitle" like="^\d+\..*">
<mt:SetVarBlock name="key"><mt:PageTitle escape="html" /></mt:SetVarBlock>
</mt:if>
<mt:SetVarBlock name="val"><li><a href="<mt:PagePermalink />" title="<mt:PageTitle escape="html" />"><mt:PageTitle escape="html" /></a></li></mt:SetVarBlock>
<mt:SetVar name="title_data{$key}" value="$val" />
</mt:Pages>
</mt:if>
<mt:loop name="title_data" sort_by="key numeric">
<mt:if name="__first__">
<div class="widget-pages widget">
<h3 class="widget-header">ウェブページ</h3>
<div class="widget-content">
<ul>
</mt:if>
<mt:GetVar name="__value__" />
<mt:if name="__last__">
</ul>
</div>
</div>
</mt:if>
</mt:loop>
</mt:ifArchiveTypeEnabled>
176ページ
「最近のブログ記事」ウィジェットテンプレート
<mt:ifArchiveTypeEnabled archive_type="Individual">
<mt:if tag="BlogEntryCount">
<mt:BlogEntryCount setvar="entry_count" />
<mt:Entries lastn="$entry_count">
<mt:if tag="EntryTitle" like="^\d\..*">
<mt:SetVarBlock name="key"><mt:EntryTitle escape="html" regex_replace="/^(\d)\..*/","0$1" /></mt:SetVarBlock>
<mt:elseIf tag="EntryTitle" like="^\d+\..*">
<mt:SetVarBlock name="key"><mt:EntryTitle escape="html" /></mt:SetVarBlock>
</mt:if>
<mt:SetVarBlock name="val"><li><a href="<mt:EntryPermalink />" title="<mt:EntryTitle escape="html" />"><mt:EntryTitle escape="html" /></a></li></mt:SetVarBlock>
<mt:SetVar name="title_data{$key}" value="$val" />
</mt:Entries>
</mt:if>
<mt:loop name="title_data" sort_by="key numeric">
<mt:if name="__first__">
<div class="widget-recent-entries widget-archives widget">
<h3 class="widget-header">最近のブログ記事</h3>
<div class="widget-content">
<ul>
</mt:if>
<mt:GetVar name="__value__" />
<mt:if name="__last__">
</ul>
</div>
</div>
</mt:if>
</mt:loop>
</mt:ifArchiveTypeEnabled>