カレンダーで月送りが出来ないのはイヤだ~ってことで探していたらありました!
ウィジェットを作れば良いんだって~楽だーこれは(笑)
月の>や<をクリックすると月別アーカイブに飛びます。
エントリーがない月は表示されません。(私の場合は間があいたからとびとび~^_^;)
ウィジェット一つ目。
ウィジェット名:月移動カレンダー
<div class="widget-calendar widget">
<h3 class="widget-header">カレンダー</h3>
<div class="widget-content">
<table summary="リンク付きのカレンダー">
<caption>
<MTArchivePrevious archive_type="Monthly">
<a href="<$MTArchiveLink archive_type="Monthly"$>"><</a>
</MTArchivePrevious>
<$MTCalendarDate format="%B %Y"$>
<MTArchiveNext archive_type="Monthly">
<a href="<$MTArchiveLink archive_type="Monthly"$>">></a>
</MTArchiveNext>
</caption>
<tr>
<th abbr="日曜日">日</th>
<th abbr="月曜日">月</th>
<th abbr="火曜日">火</th>
<th abbr="水曜日">水</th>
<th abbr="木曜日">木</th>
<th abbr="金曜日">金</th>
<th abbr="土曜日">土</th>
</tr>
<MTCalendar month="this">
<MTCalendarWeekHeader><tr></mt:CalendarWeekHeader>
<td><MTCalendarIfEntries>
<MTEntries lastn="1"><a href="<$MTEntryPermalink$>" title="<$MTEntryTitle$>"><$MTCalendarDay$></a></MTEntries>
</MTCalendarIfEntries>
<MTCalendarIfNoEntries><$MTCalendarDay$></MTCalendarIfNoEntries>
<MTCalendarIfBlank> </MTCalendarIfBlank></td>
<MTCalendarWeekFooter></tr></MTCalendarWeekFooter>
</MTCalendar>
</table>
</div>
</div>
ウィジェット二つ目。
ウィジェット名:カレンダー月移動
<MTIf name="datebased_only_archive">
<$MTInclude widget="月移動カレンダー"$>
<MTElse>
<MTIf name="entry_template">
<MTSetVarBlock name="thismonth"><$MTEntryDate format="%Y%m"$></MTSetVarBlock>
<MTArchiveList archive_type="Monthly">
<MTSetVarBlock name="month"><$MTArchiveDate format="%Y%m"$></MTSetVarBlock>
<MTIf name="month" eq="$thismonth">
<$MTInclude widget="月移動カレンダー"$>
</MTIf>
</MTArchiveList>
<MTElse>
<MTArchiveList archive_type="Monthly" lastn="1">
<$MTInclude widget="月移動カレンダー"$>
</MTArchiveList>
</MTIf>
</MTIf>
*緑字:月アーカイブ用、赤字:ブログ記事用、青字:メイン・カテゴリ用
スタイルシートに追加(お好みでってことなので私はフォントサイズを2pxあげました^_^;)
.widget-calendar table {
width: 100%;
}
.widget-calendar caption {
text-align: center;
padding-top:5px;
font-size:14px;
}
ウィジェットをセットして出来上がり~。
詳しくは
【WingMemo様の ダイナミックで月送りカレンダー(4) MT4版】
あちらを見た方が確実です(笑)←私が不親切?
ありがとうございまーす
コメントする