Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Calendar settings.

Calendar settings: Difference between revisions

From MoodleDocs
(added template)
(Site administration settings, Preference settings)
Line 1: Line 1:
{{Calendar}}
{{Calendar}}
{{Improve}}
==Preference settings==
Location: ''Administration > Appearance > Calendar''
Both the daily detail screen and the monthly detail screen have the Preferences button in the upper right. Here you can set the time format, first day of the week, number of events to show in the calendar block, days to look forward for events and if the filters on this calendar should be saved as the default for all calendars.


The days and events to lookahead settings are for displaying events in the [[Upcoming Events block]]. If the Upcoming Events block becomes too long you can reduce the number of days and events to lookahead.
==Site administration settings==


The following settings can be changed by a site administrator in ''Administration > Appearance > Calendar'':


==Importing multiple events==
===Admins see all===


Currently there is no way to import data to create multiple events.  All events must be individually entered through the New Event button. Because the New Event data entry screen only allows drop down selection rather than typed entries, it is very difficult to design a macro for quick repeated input of New Events.
Whether admins see all calendar events or just those that apply to themselves.


The only other option is to directly connect to the central moodle [SQL] database and directly enter data into the events table.  ''Great care'' needs to be taken with this approach as alterations to the data structure may cause your moodle site to crash!
===Time display format===
To convert MS Excel dates to moodle Unix dates use: Unix date integer =((Excel date integer)-25569)*86400


==List format==
Whether a 12 or 24 hour format is used. This setting can be overridden by user preferences.
The calendar displays event lists one day at a time.  There is no capacity to display a list of all site or course events over an extended period. To obtain date lists for publications, the only option is to link directly to the SQL database, select by the "courseid" and perform calculations to convert the UNIX "timestart" to a publishable date format:


Using a Microsoft Access query, collect data from the '''mdl_event''' table and create 2 calculated fields:
===Start of week===


*'''calcdate''': DateValue("1/1/1970")+[timestart]/60/60/24+10/24
Default is Sunday.
*'''daysavdate''': IIf([calcdate] Between #2/04/2006# And #29/10/2006#,[calcdate],[calcdate]+1/24)


Then, use additional calculated fields to separate the date, day of week and time (if needing to be  formatted separately:
===Weekend days===


*Dte: Format([daysavdate],"mmm dd")
Weekend days are shown in a different colour.
*DayName: Format([daysavdate],"ddd")
*Tme: Format([daysavdate],"hh:nn am/pm")


:''TIP:'' The dates for daylight saving need to be changed each year to match your location.
===Days and events to look ahead===
:''TIP:'' Very brief summary process for creating connection to moodle database in Windows environment: Install MySQL [[ODBC]] 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


==Navigating months==
For determining how many events are listed in the [[Upcoming Events block]]. If the Upcoming Events block becomes too long you can reduce the number of days and events to lookahead.
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


==Display Current Day Events==
===Calendar export===


Use link: http://moodle.org/calendar/view.php?view=day
The calendar export salt is a random string of characters used for improving of security of authentication tokens used for exporting of calendars.


==See also==
[[Category:Site administration]]
 
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=52320 URL to show today's calendar] forum discussion
 
[[Category:Administrator]]
[[Category:Calendar]]


[[fr:Calendrier (administrateur)]]
[[fr:Calendrier (administrateur)]]
[[ja:カレンダー (管理者)]]
[[ja:カレンダー (管理者)]]

Revision as of 15:31, 11 October 2011

Preference settings

Both the daily detail screen and the monthly detail screen have the Preferences button in the upper right. Here you can set the time format, first day of the week, number of events to show in the calendar block, days to look forward for events and if the filters on this calendar should be saved as the default for all calendars.

Site administration settings

The following settings can be changed by a site administrator in Administration > Appearance > Calendar:

Admins see all

Whether admins see all calendar events or just those that apply to themselves.

Time display format

Whether a 12 or 24 hour format is used. This setting can be overridden by user preferences.

Start of week

Default is Sunday.

Weekend days

Weekend days are shown in a different colour.

Days and events to look ahead

For determining how many events are listed in the Upcoming Events block. If the Upcoming Events block becomes too long you can reduce the number of days and events to lookahead.

Calendar export

The calendar export salt is a random string of characters used for improving of security of authentication tokens used for exporting of calendars.