カレンダー (管理者)

提供:MoodleDocs
2006年10月27日 (金) 04:48時点におけるMitsuhiro Yoshida (トーク | 投稿記録)による版
移動先:案内検索

作成中です - Mitsuhiro Yoshida 2006年10月26日 (木) 16:46 (CDT)

複数イベントのインポート

現在、カレンダーに複数イベントをインポートすることはできません。個々のイベントは「新しいイベント」ボタンをクリックして入力する必要があります。新しいイベントは、値の入力ではなくドロップダウンの選択のみで設定できますので、イベントの繰り返し入力をデザインすることは難しいためです。

唯一のオプションは、Moodle [SQL] データベースに直接接続して、イベントテーブルにデータを直接入力することです。この場合、あなたのMoodleサイトを破壊する可能性がありますので、十分注意して作業を行ってください! MS Excelの日付をMoodle Unix形式の日付に変換するには、次のようにしてください: Unix日付値 =((Excel日付値)-25569)*86400

リストフォーマット

カレンダーは、1度に1日のイベントリストのみ表示します。これは、すべてのサイトまたはコースイベントを長期間表示する表示領域がないからです。公開するためデータリストを取得する唯一のオプションは、SQLデータベースに直接リンクすることです。courseidで選択して、公開可能な日付フォーマットにUNIX timestart を変換します:

Using a Microsoft Access query, collect data from the mdl_event table and create 2 calculated fields:

  • calcdate: DateValue("1/1/1970")+[timestart]/60/60/24+10/24
  • daysavdate: IIf([calcdate] Between #2/04/2006# And #29/10/2006#,[calcdate],[calcdate]+1/24)

Then, use additional calculated fields to seperate the date, day of week and time (if needing to be formatted seperately:

  • Dte: Format([daysavdate],"mmm dd")
  • DayName: Format([daysavdate],"ddd")
  • Tme: Format([daysavdate],"hh:nn am/pm")

PS: The dates for daylight saving need to be changed each year to match your location. PS: Very breif summary process for creating connection to moodle database in Windows environment: Install MySQL OBDC Driver 3.51 / Start settings control panel / admin tools/ Data Sources/ ODBC / add new service/ select MySQL ODBC driver/ follow prompts for User & password/ open access/ get external data/ point to MySQL ODBC connection

月のナビゲーション

There is no easy way to jump to a specific month in the year other than to directly edit the URL variable for month "m=" : calendar/view.php?view=month&cal_d=1&cal_m=02&cal_y=2006

関連情報