Note: You are currently viewing documentation for Moodle 3.11. Up-to-date documentation for the latest stable version of Moodle may be available here: Calendar FAQ.

Calendar FAQ: Difference between revisions

From MoodleDocs
(Why are month names not being displayed in the correct language?)
 
(18 intermediate revisions by 7 users not shown)
Line 7: Line 7:
==Why do events without duration not show on the first day of every month?==
==Why do events without duration not show on the first day of every month?==


If your timezone settings are not default you may find that events entered with no duration on the first day of the the month, do not show in the month view of the calendar. Setting the two timezone settings in Administration > Location > Location Settings to the default settings should resolve this.
If your timezone settings are not default you may find that events entered with no duration on the first day of the month, do not show in the month view of the calendar. Setting the two timezone settings in ''Site administration > Location > Location settings'' to the default settings should resolve this.


==How can I show more upcoming events?==
==How can I show more upcoming events?==
Line 13: Line 13:
To show more events in the [[Upcoming Events block]], increase the days and/or events to lookahead in ''Site Administration > Appearance > Calendar''.
To show more events in the [[Upcoming Events block]], increase the days and/or events to lookahead in ''Site Administration > Appearance > Calendar''.


==How can I import calendar events==
==Can I use a different calendar type instead of Gregorian?==
This is not possible with the Moodle interface. A site administrator who can edit the Moodle database can write a SQL query to add multiple eventsSee [[Calendar settings]]
Yes. See [[:dev:Calendar types name|Calendar types]] in the Developer docs. It's possible to set the calendar type preference on the user and course settings page, the same as the language preference. However, unlike the language select box, this option is only shown if there is more than one calendar type. The reason for this is because the majority of sites using Moodle will not want to use another calendar type other than Gregorian.
 
==How can I import calendar events?==
See [[Calendar import]].
 
==Can I have a two-way sync with my Moodle calendar with my Google calendar?==
 
See this forum post: [https://moodle.org/mod/forum/discuss.php?d=218467#p951387 How to sync Google calendar with Moodle calendar]


==Why are month names not being displayed in the correct language?==
==Why are month names not being displayed in the correct language?==


Names of days and months are pulled out of your operating system. The system is configured for Moodle in langconfig.php where you have the strings ''locale'' (for -nix type operating systems) and ''localewin'' (for Windows operating systems) that should point to the right locale on your server. Your server operating system should support the language (= locale should be installed).
Names of days and months are pulled out of your operating system. The system is configured for Moodle in langconfig.php where you have the strings ''locale'' (for -nix type operating systems) and ''localewin'' (for Windows operating systems) that should point to the right locale on your server. Your server operating system should support the language (= locale should be installed).
==Problem:  Guest cannot access calendar unless they first click on a course link first==
Edit calendar/view.php find and change:
require_login($course, false);
TO:
if ($course == 1){
  require_login($course, true);
} else {
  require_login($course, false);
}
See [https://moodle.org/mod/forum/discuss.php?d=359244 this forum thread]
==Theme CSS in order to show more detail in month view==
See [https://moodle.org/mod/forum/discuss.php?d=386928&parent=1560045 this forum thread by Jon Bolton]


==See also==
==See also==
*Using Moodle [http://moodle.org/mod/forum/view.php?f=345 Calendar forum]


[[Category:FAQ]]
[[Category:FAQ]]


[[de:Kalender_FAQ]]
[[de:Kalender_FAQ]]
[[es:Calendario FAQ]]
[[fr:FAQ sur le Calendrier]]

Latest revision as of 08:48, 4 December 2019


How can I have teachers add site events?

Make use of a Calendar editor role and assign the teachers to that role on the site.

Why do events without duration not show on the first day of every month?

If your timezone settings are not default you may find that events entered with no duration on the first day of the month, do not show in the month view of the calendar. Setting the two timezone settings in Site administration > Location > Location settings to the default settings should resolve this.

How can I show more upcoming events?

To show more events in the Upcoming Events block, increase the days and/or events to lookahead in Site Administration > Appearance > Calendar.

Can I use a different calendar type instead of Gregorian?

Yes. See Calendar types in the Developer docs. It's possible to set the calendar type preference on the user and course settings page, the same as the language preference. However, unlike the language select box, this option is only shown if there is more than one calendar type. The reason for this is because the majority of sites using Moodle will not want to use another calendar type other than Gregorian.

How can I import calendar events?

See Calendar import.

Can I have a two-way sync with my Moodle calendar with my Google calendar?

See this forum post: How to sync Google calendar with Moodle calendar

Why are month names not being displayed in the correct language?

Names of days and months are pulled out of your operating system. The system is configured for Moodle in langconfig.php where you have the strings locale (for -nix type operating systems) and localewin (for Windows operating systems) that should point to the right locale on your server. Your server operating system should support the language (= locale should be installed).

Problem: Guest cannot access calendar unless they first click on a course link first

Edit calendar/view.php find and change:

require_login($course, false);

TO:

if ($course == 1){
 require_login($course, true);
} else {
 require_login($course, false);
}

See this forum thread

Theme CSS in order to show more detail in month view

See this forum thread by Jon Bolton

See also