Calendar
A Views plugin that displays views containing dates as Calendars, supporting year, month, week, and day views.
calendar
概要
Calendarモジュールは、ノードやタクソノミータームの日付フィールドに基づいて、Viewsでカレンダーを作成することを可能にします。日付ベースのコンテンツを視覚的なカレンダー形式で表示するための完全なソリューションを提供します。
このモジュールは4つの異なる時間ベースの表示形式を提供します:年ビュー(12個のミニ月カレンダーを表示)、月ビュー(従来の月間カレンダーグリッド)、週ビュー(7日間の横型タイムライン)、日ビュー(単一日の時間ベースレイアウト)。各ビュータイプは、重複するイベント、複数日にまたがるイベントの表示、時間ベースのグループ化をサポートしています。
カレンダーイベントは、コンテンツタイプまたはタクソノミータームに基づくストライプ凡例を使用して視覚的に区別でき、カスタマイズ可能な16進数カラーコードを設定できます。このモジュールには、期間間のナビゲーション用の専用Calendarページャーと、フォーマットされた日付タイトルを表示するためのCalendar Headerエリアハンドラーが含まれています。
カレンダーを設定する最も簡単な方法は、Views Templatesモジュールが提供する「テンプレートから追加」機能を使用することです。これにより、コアの日付フィールド(作成日、更新日)またはカスタム日付フィールドに基づいて、事前設定されたカレンダービューが生成されます。
Features
- 年、月、週、日のカレンダービュー表示
- 視覚的な継続インジケーター付きの複数日イベントのサポート
- コンテンツタイプまたはタクソノミータームに基づく色分けストライプ凡例
- 期間間のナビゲーション用Calendarページャー
- サイドバーブロック用のミニカレンダー表示オプション
- 時間ベースのグループ化(時間単位、30分単位、またはカスタム間隔)
- オプションのスクロール機能付き重複イベント表示
- 週番号の表示オプション
- 1日あたりの最大アイテム数と「もっと見る」リンク動作
- 簡単なカレンダー作成のためのViews Templates連携
- Date Recurモジュール連携による繰り返し日付のサポート
- カスタマイズ可能な曜日略称と月名形式
- ユーザーナビゲーション状態のためのセッションベース日付追跡
- 色キーを表示するCalendar Legendブロック
Use Cases
Event Calendar for Website
Create a public-facing event calendar by adding a date field to an Event content type. Use Views Templates to generate a complete calendar with month, week, day, and year views. Configure stripe colors by content type to distinguish different event categories.
Editorial Calendar for Content Planning
Build an internal editorial calendar showing when content was created or updated. Use the node 'Created' or 'Changed' date fields to display content publication timelines. Add filters by author or content type to focus on specific content.
Mini Calendar Block in Sidebar
Add a compact mini calendar to your sidebar by creating a month view with the 'Display as mini calendar' option enabled. Place the resulting View block in a sidebar region to show a quick month overview with links to detailed day views.
Booking or Reservation System Display
Display available and booked time slots using a week or day view with time grouping. Configure the 'Overlapping time style' to show concurrent bookings and use taxonomy-based stripes to indicate booking status (available, pending, confirmed).
Calendar with Color-Coded Categories
Create a calendar where events are visually distinguished by category using the taxonomy stripe feature. Add a term reference field to your content type, configure taxonomy colors in the Calendar row settings, and place a Calendar Legend block to show the color key.
Tips
- Use Views caching for better performance, especially for year views which process many dates
- Configure 'Maximum items' per day to prevent calendar cells from becoming too large
- Use the Calendar Header area handler to display formatted date titles with the embedded pager option
- Set 'Track current date in session' for authenticated users to improve navigation experience
- When creating calendar templates, the Views Templates module automatically sets up contextual filters and display paths
- For overlapping events in week/day views, choose between scrolling and non-scrolling display modes based on your typical event density
- Test calendar displays in multiple browsers as table-based layouts may render slightly differently
- Consider using the mini calendar display in blocks for navigation, linking to full calendar page displays
Technical Details
Admin Pages 2
/admin/config/date
Parent configuration page for Calendar settings under Administration > Configuration.
/admin/config/date/calendar
Configure global calendar settings including session-based date tracking behavior for users navigating through calendar displays.
権限 1
Troubleshooting 6
Add a Date contextual filter (argument) to your View. Go to Advanced > Contextual Filters and add a date argument for your date field (e.g., 'Content: Created (year + month)' for month views).
Enable Views caching in the Advanced section of View settings. Set both Query Results and Rendered Output caching to at least 1 hour. Consider removing the Year view if performance remains an issue.
Verify that your date field is set to use the correct timezone settings. Check that the View's contextual filter is using the appropriate date granularity (year, month, week, or full date).
Enable 'Display multi-day item as a multiple column row' in the Calendar style settings. This requires the 'Multi-day style' option to be set appropriately for month and week views.
Ensure you have configured the Legend Colors in the Calendar row plugin settings. Select either 'Based on Content Type' or 'Based on Taxonomy' and set hex color values for each type/term.
Verify that the Calendar pager is selected in the View's pager settings and that your contextual filter has a valid default value set (use 'Calendar Current date' argument default).
Security Notes 3
- The 'administer calendar settings' permission should only be granted to trusted administrators as it affects session behavior for all users
- Stripe color hex values are validated to prevent invalid input but are rendered directly in inline styles
- Calendar events inherit the access permissions of their underlying entities - ensure proper content access controls are in place