v1.020 .
that inserts a monthly calendar in the page. Multiple topics can be specified as the source of the events, and these can be in any web. The calendar marks dates corresponding to the events.
, you can modify it in <nop>CalendarPlugin.pm at line 267,268 and also in <nop>CalSync.pm 121,122.
NB. This Plugin does not, and has never, observed topic permissions.
Attribute |
Meaning |
Default |
oldcalendar="1" or "0" |
if 1 calendar looks like CalendarPlugin v1.020 |
"0" |
id="any" |
identify particular iCal Calendar if there is more than one Calendar in the same topic |
"" |
timezone="+/-hh" or a time zone abbreviation (e.g. "UTC", "CET" ...) |
specify timezone, ! NOT WORKING PROPERLY ! |
"0" |
year="yyyy" |
The year |
Current year |
year="+yy" or "-yy" |
Relative year |
Current year |
month="mm" |
The month |
Current month |
month="+mm" or "-mm" |
relative month |
Current month |
topic="TopicName" |
Topic containing events |
The topic containing the tag |
topic="Web.TopicName1, Web.TopicName2" |
Topics containing events |
The topics containing the tags |
web="Webname" |
Web containing the event topic |
The current web |
lang="language" |
Language: First few characters of "English", "Frani"?1/2ais", "Deutsch", "Espai"?1/2ol", "Portugui"?1/2s", "Nederlands", "Italiano", "Norsk", "Svenska", "Dansk", "suomi", "Magyar", "Polski |
"English" |
daynames="Mon?Tue?..." |
Custom day names |
"Monday?Tuesday?Wednesday?Thursday? Friday?Saturday?Sunday" |
header="..." |
Text at the top of the calendar; use $m for current month, $y for year |
Current month and year - only in oldcalendar |
weekstartsonmonday="1" or "0" |
Flag to start week on Monday |
"0" (Sunday) |
showdatenumbers="0" |
Show day numbers 1...31 in date cells. Note that showdatenumbers=1 means that HTML::CalendarMonthSimple will add the date numbers to the cells. If showdatenumbers=0 , then the plugin adds the date numbers. The result of this is that a calendar will always show the date numbers. |
"0" (except with aslist="1", see below) - only in oldcalendar |
showweekdayheaders="1" |
Show the weekday headers |
"0" - only in oldcalendar |
weekdayheadersbig="0" |
If enabled, show weekday headers in bold cell headings |
"1" - only in oldcalendar |
cellalignment="left" |
Horizontal cell alignment of day cells: "left", "center", "right", "justify", "char" |
"center" - only in oldcalendar |
vcellalignment="middle" |
Vertical cell alignment of day cells: "top", "middle", "bottom", "baseline" |
"top" - only in oldcalendar |
cellheight="n" |
Height in pixels of each cell in the calendar |
Minimum height needed - only in oldcalendar |
format="..." |
How to highlight a date |
See Event Formatting below - only in oldcalendar |
width="n" or "n%" |
Width of calendar table in pixels or percent |
Minimum width needed |
border="n" |
Border width of calendar table |
"1" - only in oldcalendar |
nowrap="1" or "0" |
Prevent cell content from wrapping |
"0" - only in oldcalendar |
bgcolor="#nnnn" |
Default background color of all cells unless redefined by other color settings below (use an HTML color-code like "#000000" as defined in StandardColors) |
white - only in oldcalendar |
contentcolor="#nnnn" |
Default content color of all cells unless redefined |
black - only in oldcalendar |
headercolor="#nnnn" |
Background color of the Month+Year header |
The web bgcolor - only in oldcalendar |
headercontentcolor="#nnnn" |
Content color of the Month+Year header |
contentcolor setting - only in oldcalendar |
weekdayheadercolor="#nnnn" |
Background color of weekdays' headers |
bgcolor setting - only in oldcalendar |
weekdayheadercontentcolor= "#nnnn" |
Content color of weekdays' headers |
contentcolor setting - only in oldcalendar |
weekendheadercolor="#nnnn" |
Background color of weekends' headers |
bgcolor setting - only in oldcalendar |
weekendheadercontentcolor= "#nnnn" |
Content color of weekends' headers |
contentcolor setting - only in oldcalendar |
weekdaycolor="#nnnn" |
Background color of weekday cells |
bgcolor setting - only in oldcalendar |
weekdaycontentcolor="#nnnn" |
Content color of weekday cells |
contentcolor setting - only in oldcalendar |
weekendcolor="#nnnn" |
Background of weekend cells |
light gray - only in oldcalendar |
weekendcontentcolor="#nnnn" |
Content color of weekend cells |
contentcolor setting - only in oldcalendar |
todaycolor="#nnnn" |
Background of today's cell |
The web bgcolor - only in oldcalendar |
todaycontentcolor="#nnnn" |
Content color of today's cell |
contentcolor setting - only in oldcalendar |
and other attributes of HTML::CalendarMonthSimple |
aslist |
Controls whether events displayed in calendar style ( aslist=0 ) or list style ( aslist=1 ). Note that specifying aslist=1 forces showdatenumbers=1 . This is done to ensure that the date number is formatted according to datenumberformat and that only the days that have an event are listed. |
0 - only in oldcalendar |
days |
Specifies how many days of calendar data to list. Only valid if aslist=1 . |
1 |
months |
Specifies how many months of calendars to display. Only valid if aslist=0 . |
1 |
datenumberformat |
Specifies formatting for the date number in each cell. The formatting codes accepted are the same as those for the %GMTIME% variable. |
'$day' (if aslist=0 ) ' * $day $mon $year' (if aslist=1 ) - only in oldcalendar |
todaydatenumberformat |
Specifies formatting for the date number for the current day (today) in the calendar. The formatting codes accepted are the same as those for the %GMTIME% variable. |
datenumberformat - only in oldcalendar |
multidayformat |
Specifies formatting of the description for multi-day events. See Multi-Day Event Formatting for details. |
$description - only in oldcalendar |
Event type |
Syntax |
Example |
Single: |
* dd MMM yyyy - description |
09 Dec 2002 - Expo |
Single incuding time: |
* dd MMM yyyy hh:mm(:ss) - hh:mm(:ss) - description |
09 Dec 2002 14:00(:00)-15:00(:00) - Expo (Same day) |
* dd MMM yyyy hh:mm(:ss) - description |
09 Dec 2002 14:00(:00) - Expo (from 14 to the end of the day) |
Interval: |
* dd MMM yyyy - dd MMM yyyy - description |
02 Feb 2002 - 04 Feb 2002 - Vacation |
Interval including time: |
* dd MMM yyyy hh:mm(:ss) - dd MMM yyyy hh:mm(:ss) - description |
02 Feb 2002 14:00(:00) - 04 Feb 2002 14:00(:00) - Vacation |
Yearly: |
* dd MMM - description |
05 Jun - Every 5th of June |
* w DDD MMM - description |
2 Tue Mar - Every 2nd Tuesday of March |
* L DDD MMM - description |
L Mon May - The last Monday of May |
* A dd MMM yyyy - description |
A 20 Jul 1969 - First moon landing This style will mark anniversaries of an event that occurred on the given date. The description will have " (x)" appended to it, where "x" indicates how many years since the occurence of the first date. The first date is not annotated. |
Monthly: |
* w DDD - description |
1 Fri - Every 1st Friday of the month |
* L DDD - description |
L Mon - The last Monday of each month |
* dd - description |
14 - The 14th of every month |
Monthly including time: |
* w DDD hh:mm(:ss) - hh:mm(:ss) - description |
1 Fri 14:00(:00) - 15:00(:00) - Every 1st Friday of the month from 14:00 to 15:00 |
* L DDD hh:mm(:ss) - hh:mm(:ss) - description |
L Mon 14:00(:00) - 15:00(:00) - The last Monday of each month from 14:00 to 15:00 |
* dd hh:mm(:ss) - hh:mm(:ss) - description |
14 14:00(:00) - 15:00(:00) - The 14th of every month from 14:00 to 15:00 |
Weekly: |
* E DDD - description |
E Wed - Every Wednesday |
* E DDD dd MMM yyyy - description |
E Wed 27 Jan 2005 - Every Wednesday Starting 27 Jan 2005 |
* E DDD dd MMM yyyy - dd MMM yyyy - description |
E Wed 1 Jan 2005 - 27 Jan 2005 - Every Wednesday from 1 Jan 2005 through 27 Jan 2005 (inclusive) |
Weekly including time: |
* E DDD hh:mm(:ss) - hh:mm(:ss) - description |
E Wed 14:00 - 15:00 - Every Wednesday 14:00 - 15:00 |
* E DDD hh:mm(:ss) - hh:mm(:ss) dd MMM yyyy - description |
E Wed 14:00 - 15:00 1 Jan 2005- Every Wednesday 14:00 - 15:00 Starting 27 Jan 2005 |
* E DDD hh:mm(:ss) - hh:mm(:ss) dd MMM yyyy - dd MMM yyyy - description |
E Wed 14:00 - 15:00 1 Jan 2005 - 27 Jan 2005 - Every Wednesday from 1 Jan 2005 through 27 Jan 2005 (inclusive) |
Periodic: |
* En dd MMM yyyy - description |
E3 02 Dec 2002 - Every three days starting 02 Dec 2002 |
* En dd MMM yyyy - dd MMM yyyy - description |
E3 12 Apr 2005 - 31 Dec 2005 - Every three days from 12 Apr 2005 through 31 Dec 2005 (inclusive) |
Exception: |
Insert the following between the above syntax and the description: X { dd MMM yyyy, dd MMM yyyy - dd MMM yyyy } |
1 Fri X { 01 Dec 2002, 06 Dec 2002 - 14 Dec 2002 } - Every first Friday except on the 01 Dec 2002 and between 06 Dec 2002 and 14 Dec 2002 |
Every %CALENDAR2% tag creates also iCalendar export of Events, it is available through direct link placed under Calendar. If you want to have your organiser synchronized, you can use this link. ICal files are by default saved in pub directory.
For a table-style calendar, each day which has one or more events will have a list of the descriptions of those events. Each event description will be set in a small font. In other words,
For a list-style calendar, if an event falls in the selected time period, then it is displayed (by default) as a bullet item with the date as dd Mmm yyyy In other words,
This displays the events in a form very similar to that in which they are specified (although specific to a particular date).
The multidayformat option allows the description of each day of a multiday event to be displayed differently. This could be used to visually or textually annotate the description to indicate continuance from or to other days.
The option consists of a comma separated list of formats for each type of day in a multiday event:
Within each format, date information for the current day can be substituted using the same format codes as accepted by
. An extension to these codes allows the date of the first and/or last day of the event to also be rendered.
Missing formats are different from empty formats. For example,
. The result of this is that only the first day will be shown. Note that since an unspecified
format, an event that begins prior to the calendar being displayed but ending in the current calendar will not be displayed. In contrast, multidayformat="$description" will simply display the description for each day of the event; all days (within the scope of the calendar) will be displayed.
The default format is to simply display the description of the event.
Plugin settings are stored as preferences variables. To reference a plugin setting write
, i.e.
You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.