カレンダーを制御するタグ

使用例

<!-- カレンダー -->
<table summary="投稿された記事へのリンク付き月間カレンダー">

<!-- カレンダーの月のアーカイブ・カテゴリ別ページへのリンク作成 -->
<!-- カレンダーの月表示開始 -->
<DnetCalendarMonthes>

<!-- カレンダーの制御を先月に変更開始 -->
<DnetCalendarMonthPrevious>

<!-- 先月の月別ページへリンク作成 -->
<a href="<DnetCalendarMonthLink>">先月へ</a>

<!-- カレンダーの制御を先月に変更終了 -->
</DnetCalendarMonthPrevious>

<!-- 当月の月別ページへリンク作成(当月の日付出力) -->
<a href="<DnetCalendarMonthLink>"><DnetCalendarMonthDate format="%Y年%B"></a>

<!-- カレンダーの制御を翌月に変更開始 -->
<DnetCalendarMonthNext>

<!-- 翌月の月別ページへリンク作成 -->
<a href="<DnetCalendarMonthLink>">翌月へ</a>

<!-- カレンダーの制御を翌月に変更終了 -->
</DnetCalendarMonthNext>


<!-- カレンダーの月表示終了 -->
</DnetCalendarMonthes>

<tr>
<th abbr="日曜日">日</th>
<th abbr="月曜日">月</th>
<th abbr="火曜日">火</th>
<th abbr="水曜日">水</th>
<th abbr="木曜日">木</th>
<th abbr="金曜日">金</th>
<th abbr="土曜日">土</th>
</tr>

<!-- カレンダーの日表示開始 -->
<DnetCalendar>

<!-- 週の始めのみ、中身が表示開始 -->
<DnetCalendarWeekHeader>

<tr></tr>

<!-- 週の始めのみ、中身が表示終了 -->
</DnetCalendarWeekHeader>

<td>

<!-- 表示する当日に記事がある時表示開始 -->
<DnetCalendarIfEntries>

<!-- 記事が存在する時日別ページへのリンクをつけて日を表示 -->
<a href="<DnetCalendarLink>"><DnetCalendarDay></a>

<!-- 表示する当日に記事がある時表示終了 -->
</DnetCalendarIfEntries>

<!-- 表示する当日に記事がない時表示開始 -->
<DnetCalendarIfNoEntries>

<!-- 日を表示 -->
<DnetCalendarDay>

<!-- 表示する当日に記事がない時表示終了 -->
</DnetCalendarIfNoEntries>

<!-- テーブルのセル空白の時表示開始 -->
<DnetCalendarIfBlank>

<!-- 空白 -->
 

<!-- テーブルのセル空白の時表示終了 -->
</DnetCalendarIfBlank>

</td>

<!-- 週の終わり、中身が表示開始 -->
<DnetCalendarWeekFooter>

</tr>

<!-- 週の終わり、中身が表示終了 -->
</DnetCalendarWeekFooter>

<!-- カレンダーの日表示終了 -->
</DnetCalendar>

</table>

DnetCalendarMonthes

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarMonthes>  ~  </DnetCalendarMonthes>

説明

カレンダーの月表示を制御します。

補足

カレンダーのタグを有効にするために設定します。

DnetCalendarMonthPrevious

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarMonthPrevious>  ~  </DnetCalendarMonthPrevious>

説明

先月に制御を移動します。

補足

DnetCalendarMonthesのタグの間に指定して下さい。

DnetCalendarMonthNext

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarMonthNext>  ~  </DnetCalendarMonthNext>

説明

翌月に制御を移動します。

補足

DnetCalendarMonthesのタグの間に指定して下さい。

DnetCalendarMonthDate

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarMonthDate>

説明

日付が表示されます。
「format="N"」で属性を設定することができます。

補足

DnetCalendarMonthesのタグの間に指定して下さい。
「format」は日付の形式(strftimeとほぼ同じ形式)で設定できます。
例:「<DnetEntryDate format="%y/%m/%d">」と設定すると、「年(下に2桁)/月/日」と表示されます。

DnetCalendarMonthLink

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarMonthLink>

説明

該当月の月別ページへのURLが表示されます。

補足

DnetCalendarMonthesのタグの間に指定して下さい。

DnetCalendar

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendar>  ~  </DnetCalendar>

説明

カレンダーを制御します。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarDay

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarDay>

説明

日のみが表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarCellNumber

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarDay>

説明

月別カレンダーのセル番号が表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarDate

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarDate>

説明

日付が表示されます。
「format="N"」で属性を設定することができます。

補足

DnetCalendarのタグの間に指定して下さい。
「format」は日付の形式(strftimeとほぼ同じ形式)で設定できます。
例:「<DnetEntryDate format="%y/%m/%d">」と設定すると、「年(下に2桁)/月/日」と表示されます。

DnetCalendarLink

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarLink>

説明

該当日の日別ページへのURLが表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarWeekHeader

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarWeekHeader>  ~  </DnetCalendarWeekHeader>

説明

週の始めのみ、中身が表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarWeekFooter

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarWeekFooter>  ~  </DnetCalendarWeekFooter>

説明

週の終わりのみ、中身が表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarIfBlank

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarIfBlank>  ~  </DnetCalendarIfBlank>

説明

月別カレンダーのセルが空白の場合、中身が表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarIfEntries

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarIfEntries>  ~  </DnetCalendarIfEntries>

説明

該当日に記事がある場合、中身が表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarIfNoEntries

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarIfNoEntries>  ~  </DnetCalendarIfNoEntries>

説明

該当日に記事がない場合、中身が表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

DnetCalendarIfToday

メインページ 使用可能
記事別ページ 使用可能
アーカイブ・カテゴリ別ページ 使用可能

使用方法

<DnetCalendarIfToday>  ~  </DnetCalendarIfToday>

説明

該当日が今日の場合、中身が表示されます。

補足

DnetCalendarのタグの間に指定して下さい。

オンラインマニュアル目次へ戻る

ページの先頭へ戻る