0 Stimmen

Änderungen von Dokument Calendar Macro

Zuletzt geändert von Dieter Strasser am 2026/07/02 13:57

Von Version 1.1
bearbeitet von root
am 2026/07/02 13:27
Änderungskommentar: Install extension [org.xwiki.contrib:macro-fullcalendar/1.1.8]
Auf Version 2.1
bearbeitet von Dieter Strasser
am 2026/07/02 13:57
Änderungskommentar: Install extension [org.xwiki.contrib:macro-fullcalendar-ui/2.5.3]

Zusammenfassung

Details

Seiteneigenschaften
Dokument-Autor
... ... @@ -1,1 +1,1 @@
1 -XWiki.root
1 +XWiki.dieter_strasser
Inhalt
... ... @@ -1,6 +1,10 @@
1 1  Example usage:
2 2  
3 3  {{code}}
4 + {{calendar gCal="usa__en@holiday.calendar.google.com" defaultView="agendaWeek" /}}
5 +
6 +or
7 +
4 4   {{calendar classname="Blog.BlogPostClass" startfield="publishDate" editable="false" year="2009" month="5" date="1" /}}
5 5  
6 6  or
... ... @@ -13,6 +13,8 @@
13 13  
14 14  {{velocity}}
15 15  
20 + {{calendar gCal="usa__en@holiday.calendar.google.com" defaultView="agendaWeek" /}}
21 +
16 16   {{calendar json="${xwiki.getDocument("Calendar.ExampleJSON").getURL("get")}" editable="false" year="2012" month="5" date="18" /}}
17 17  
18 18   {{calendar classname="Blog.BlogPostClass" startfield="publishDate" editable="false" year="2009" month="5" date="1" /}}
XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -1,9 +1,6 @@
1 1  {{velocity}}
2 -#set($ok = $services.localization.use('document', 'Calendar.Translations'))
3 -#set($discard = $xwiki.jsx.use("Calendar.JQuery", {'defer': false}))
4 -#set($discard = $xwiki.jsx.use("Calendar.JQueryUI", {'defer': false}))
5 -#set($discard = $xwiki.jsx.use("Calendar.FullCalendar", {'defer': false}))
6 6  #set($discard = $xwiki.ssx.use("Calendar.FullCalendar"))
3 +##
7 7  #if($calcounter)
8 8   #set($calcounter = $calcounter + 1)
9 9  #else
... ... @@ -23,7 +23,7 @@
23 23  #end
24 24  #set($right = $xcontext.macro.params.right)
25 25  #if(!$right)
26 - #set($right = "month,agendaWeek,agendaDay")
23 + #set($right = "agendaDay,agendaWeek,month")
27 27  #end
28 28  #set($timeFormat = $xcontext.macro.params.timeFormat)
29 29  #if(!$timeFormat)
... ... @@ -39,15 +39,25 @@
39 39  #end
40 40  #set($year = $xcontext.macro.params.year)
41 41  #if(!$year)
42 - #set($year = "")
39 + #set($year = "${datetool.year}")
43 43  #end
44 44  #set($month = $xcontext.macro.params.month)
45 45  #if(!$month)
46 - #set($month = "")
43 + #set($month = "${mathtool.add($datetool.month, 1)}")
44 + #if ($stringtool.length($month) == 1)
45 + #set($month = "0${month}")
46 + #end
47 +#elseif ($stringtool.length($month) == 1)
48 + #set($month = "0${month}")
47 47  #end
48 48  #set($date = $xcontext.macro.params.date)
49 49  #if(!$date)
50 - #set($date = "")
52 + #set($date = "${datetool.day}")
53 + #if ($stringtool.length($date) == 1)
54 + #set($date = "0${date}")
55 + #end
56 +#elseif ($stringtool.length($date) == 1)
57 + #set($date = "0${date}")
51 51  #end
52 52  #set($firstDay = $xcontext.macro.params.firstDay)
53 53  #if(!$firstDay)
... ... @@ -60,114 +60,201 @@
60 60  #set($minTime = $xcontext.macro.params.minTime)
61 61  #if(!$minTime)
62 62   #set($minTime = "")
70 +#elseif($minTime.indexOf(':') == -1)
71 + #set($minTime = "${minTime}:00")
63 63  #end
64 64  #set($maxTime = $xcontext.macro.params.maxTime)
65 65  #if(!$maxTime)
66 66   #set($maxTime = "")
76 +#elseif($maxTime.indexOf(':') == -1)
77 + #set($maxTime = "${maxTime}:00")
67 67  #end
68 68  #set($editable = $xcontext.macro.params.editable)
69 69  #if(!$editable)
70 70   #set($editable = "false")
71 71  #end
72 -#set($json = $xcontext.macro.params.json)
73 -#if(!$json)
74 - #set($json = $xwiki.getDocument("Calendar.JSONService").getURL("get"))
83 +#set($extraFields = $xcontext.macro.params.extraFields)
84 +#set($json = $xwiki.getDocument('Calendar.JSONService').getURL('get'))
85 +#if ($xcontext.macro.params.json)
86 + #set($json = $xcontext.macro.params.json)
75 75  #end
88 +#set($iCal = $xcontext.macro.params.iCal)
89 +#if ($iCal)
90 + ## The iCal format is serialized as JSON and should be used only when the JSON parameter is not specified.
91 + #set($json = $xwiki.getDocument('Calendar.ICalToJSON').getURL('get', "iCal=$escapetool.url($iCal)"))
92 +#end
76 76  #set($updateurl = $xcontext.macro.params.updateurl)
77 77  #if(!$updateurl)
78 78   #set($updateurl = $xwiki.getDocument("Calendar.UpdateService").getURL("get"))
79 79  #end
97 +#set($gApiKey = $xcontext.macro.params.gApiKey)
98 +#if(!$gApiKey)
99 + #set($gApiKey = 'AIzaSyDedBXsLGUPKGT2SKh1aZXXJZKdpEc8bQU')
100 +#end
101 +#set($gCal = $xcontext.macro.params.gCal)
80 80  {{html clean="false"}}
81 81  <script>
104 +/************************************
105 + * Configure RequireJS to use jQuery-UI
106 + ************************************/
107 +require.config({
108 + paths: {
109 + 'fullcalendar-setup': new XWiki.Document('FullCalendar', 'Calendar').getURL('jsx', 'minify=$!services.debug.minify')
110 + }
111 +});
112 +require(['fullcalendar-setup'], function() {
113 + require(['jquery', 'jquery-ui', 'fullcalendar', 'gcal'], function ($) {
114 + function updateEvent(page, isResize, delta, allDay, revertFunc) {
115 + // Initialize notification boxes
116 + var savingBox = new XWiki.widgets.Notification("$!services.localization.render('xwiki.calendar.notification.inprogress')", "inprogress", {inactive: true});
117 + var savedBox = new XWiki.widgets.Notification("$!services.localization.render('xwiki.calendar.notification.done')", "done", {inactive: true});
118 + var failedBox = new XWiki.widgets.Notification("$!services.localization.render('xwiki.calendar.notification.error')", "error", {inactive: true});
82 82  
83 -function updateEvent(page,isResize, dayDelta,minuteDelta,allDay,revertFunc) {
84 - var savingBox = new XWiki.widgets.Notification("Saving...", "inprogress", {inactive: true});
85 - var savedBox = new XWiki.widgets.Notification("Saved", "done", {inactive: true});
86 - var failedBox = new XWiki.widgets.Notification("Failed to save the document. Reason: <span id=\"ajaxRequestFailureReason\"></span>", "error", {inactive: true});
87 - savingBox.show();
88 - savedBox.hide();
89 - failedBox.hide();
90 - // let's call the calendar update
91 - var url = '$updateurl';
92 - url = url + "#if($stringtool.contains($updateurl, "?"))&#{else}?#{end}xpage=plain&outputSyntax=plain&classname=$!{xcontext.macro.params.classname}&startfield=$!{xcontext.macro.params.startfield}&durationfield=$!{xcontext.macro.params.durationfield}&page=" + page + "&isResize=" + (isResize ? "1" : "0") + "&dayDelta=" + dayDelta + "&minuteDelta=" + minuteDelta + ((allDay) ? "&allDay=1" : "");
93 - // alert(url);
94 - jQuery.ajax({ url: url}).fail(function ( data ) {
95 - savingBox.hide();
96 - failedBox.show();
97 - $('ajaxRequestFailureReason').update("update failed");
98 - revertFunc();
99 - }).success(function ( data ) {
100 - if (data.indexOf("OK ")==0) {
101 - savingBox.hide();
102 - savedBox.show();
103 - // alert("Update success");
104 - } else {
105 - savingBox.hide();
106 - failedBox.show();
107 - $('ajaxRequestFailureReason').update("update failed");
108 - // alert("Update failed: " + data);
109 - revertFunc();
110 - }
111 - });
120 + // Display loading notification
121 + savingBox.show();
122 + savedBox.hide();
123 + failedBox.hide();
124 +
125 + // Compute days and minutes in order to keep backwards compatibility
126 + var dayDelta = delta._data.days;
127 + var minuteDelta = delta._data.hours * 60 + delta._data.minutes;
128 +
129 + // Let's call the calendar update
130 + var url = '$updateurl';
131 + url = url + "#if($stringtool.contains($updateurl, "?"))&#{else}?#{end}xpage=plain&outputSyntax=plain&classname=$!{xcontext.macro.params.classname}&startfield=$!{xcontext.macro.params.startfield}&endfield=$!{xcontext.macro.params.endfield}&durationfield=$!{xcontext.macro.params.durationfield}&page=" + page + "&isResize=" + (isResize ? "1" : "0") + "&dayDelta=" + dayDelta + "&minuteDelta=" + minuteDelta + ((allDay) ? "&allDay=1" : "");
132 +
133 + $.ajax({ url: url }).fail(function(data) {
134 + savingBox.hide();
135 + failedBox.show();
136 + revertFunc();
137 + }).success(function(data) {
138 + if (data.indexOf("OK") == 0) {
139 + savingBox.hide();
140 + savedBox.show();
141 + } else {
142 + savingBox.hide();
143 + failedBox.show();
144 + revertFunc();
145 + }
146 + });
112 112   }
113 113  
114 -var monthNames = $!services.localization.render('xwiki.calendar.monthNames')
115 -var monthNamesShort = $!services.localization.render('xwiki.calendar.monthNamesShort');
116 -var dayNames = $!services.localization.render('xwiki.calendar.dayNames');
117 -var dayNamesShort = $!services.localization.render('xwiki.calendar.dayNamesShort');
149 + var monthNames = $!services.localization.render('xwiki.calendar.monthNames')
150 + var monthNamesShort = $!services.localization.render('xwiki.calendar.monthNamesShort');
151 + var dayNames = $!services.localization.render('xwiki.calendar.dayNames');
152 + var dayNamesShort = $!services.localization.render('xwiki.calendar.dayNamesShort');
118 118  
119 -jQuery(document).ready(function() {
120 -  // page is now ready, initialize the calendar...
121 -  jQuery('#calendar${calcounter}').fullCalendar({
122 - columnFormat: {
123 - month: "$!services.localization.render('xwiki.calendar.columnFormat.month')",
124 - week: "$!services.localization.render('xwiki.calendar.columnFormat.week')",
125 - day: "$!services.localization.render('xwiki.calendar.columnFormat.day')"
154 + function init() {
155 + // The page is now ready, initialize the calendar...
156 + var progressNotification;
157 + $('#calendar${calcounter}').fullCalendar({
158 + views: {
159 + month : {
160 + columnFormat: "$!services.localization.render('xwiki.calendar.columnFormat.month')",
161 + titleFormat: "$!services.localization.render('xwiki.calendar.titleFormat.month')",
162 + buttonText: "$!services.localization.render('xwiki.calendar.button.month')"
163 + },
164 + week : {
165 + columnFormat: "$!services.localization.render('xwiki.calendar.columnFormat.week')",
166 + titleFormat: "$!services.localization.render('xwiki.calendar.titleFormat.week')",
167 + buttonText: "$!services.localization.render('xwiki.calendar.button.week')"
168 + },
169 + day : {
170 + columnFormat: "$!services.localization.render('xwiki.calendar.columnFormat.day')",
171 + titleFormat: "$!services.localization.render('xwiki.calendar.titleFormat.day')",
172 + buttonText: "$!services.localization.render('xwiki.calendar.button.day')"
173 + },
174 + today: {
175 + buttonText: "$!services.localization.render('xwiki.calendar.button.today')"
176 + }
126 126   },
127 - titleFormat: {
128 - month: "$!services.localization.render('xwiki.calendar.titleFormat.month')",
129 - week: "$!services.localization.render('xwiki.calendar.titleFormat.week')",
130 - day: "$!services.localization.render('xwiki.calendar.titleFormat.day')"
131 - },
132 - buttonText: {
133 - today: "$!services.localization.render('xwiki.calendar.button.today')",
134 - day: "$!services.localization.render('xwiki.calendar.button.day')",
135 - week: "$!services.localization.render('xwiki.calendar.button.week')",
136 - month: "$!services.localization.render('xwiki.calendar.button.month')"
137 - },
138 138   timeFormat : "$!services.localization.render('xwiki.calendar.timeFormat')",
139 139   axisFormat : "$!services.localization.render('xwiki.calendar.axisFormat')",
140 140   allDayText : "$!services.localization.render('xwiki.calendar.allDayText')",
141 - monthNames : monthNames,
142 - monthNamesShort :monthNamesShort,
143 - dayNames : dayNames,
144 - dayNamesShort : dayNamesShort,
145 -
146 - events: "${json}#if($stringtool.contains($json, "?"))&#{else}?#{end}xpage=plain&outputSyntax=plain&classname=$!{xcontext.macro.params.classname}&startfield=$!{xcontext.macro.params.startfield}&durationfield=$!{xcontext.macro.params.durationfield}",
181 + monthNames : monthNames,
182 + monthNamesShort : monthNamesShort,
183 + dayNames : dayNames,
184 + dayNamesShort : dayNamesShort,
185 + googleCalendarApiKey : "$gApiKey",
186 + eventSources: [
187 + #if($json != $jsonService || "$!xcontext.macro.params.classname" != '')
188 + "${json}#if($stringtool.contains($json, "?"))&#{else}?#{end}xpage=plain&outputSyntax=plain&classname=$!{xcontext.macro.params.classname}&startfield=$!{xcontext.macro.params.startfield}&endfield=$!{xcontext.macro.params.endfield}&durationfield=$!{xcontext.macro.params.durationfield}&extraFields=$!{extraFields}&form_token=$!{services.csrf.token}"
189 + #end
190 + #if($!gCal != '')
191 + ,
192 + #set($calendars = $stringtool.split($gCal, ','))
193 + #foreach($calendar in $calendars)
194 + { googleCalendarId: "$stringtool.strip($calendar)" }
195 + #if($foreach.count < $calendars.size())
196 + ,
197 + #end
198 + #end
199 + #end
200 + ],
147 147   header: {
148 - left: '$left',
149 - center: '$center',
150 - right: '$right'
151 - }
152 -     #if($timeFormat!=""), timeFormat: '$timeFormat' #end
153 - #if($defaultView!=""), defaultView: '$defaultView' #end
154 - #if($year!=""), year: $year#end
155 - #if($month!=""), month: $month #end
156 - #if($date!=""), date: $date #end
157 - #if($firstDay!=""), firstDay: $firstDay #end
158 - #if($firstHour!=""), firstHour: $firstHour #end
159 - #if($minTime!=""), minTime: $minTime #end
160 - #if($maxTime!=""), maxTime: $maxTime #end
161 - ,editable: $editable
162 - ,eventDrop: function(event,dayDelta,minuteDelta,allDay,revertFunc) {
163 - updateEvent(event.id, false, dayDelta, minuteDelta, allDay, revertFunc);
202 + left : '$left',
203 + center : '$center',
204 + right : '$right'
164 164   }
165 - ,eventResize: function(event,dayDelta,minuteDelta,revertFunc) {
166 - updateEvent(event.id, true, dayDelta, minuteDelta, false, revertFunc);
167 - }
168 -    })
206 + #if($timeFormat != ""), timeFormat : '$timeFormat' #end
207 + #if($defaultView != ""), defaultView : '$defaultView' #end
208 + #if($firstDay != ""), firstDay : '$firstDay' #end
209 + #if($firstHour != ""), firstHour : '$firstHour' #end
210 + #if($minTime != ""), minTime : '$minTime' #end
211 + #if($maxTime != ""), maxTime : '$maxTime' #end
212 + ,defaultDate : '${year}-${month}-${date}'
213 + ,editable : $editable
214 + ,eventDrop : function(event, delta, revertFunc) {
215 + updateEvent(event.id, false, delta, event._allDay, revertFunc);
216 + }
217 + ,eventResize : function(event, delta, revertFunc) {
218 + updateEvent(event.id, true, delta, false, revertFunc);
219 + },
220 + eventRender: function(event, element) {
221 + // Add tooltip on the calendar element.
222 + var tooltip = '';
223 + if (event.status) {
224 + tooltip = tooltip + "$services.localization.render('xwiki.calendar.event.status') " + event.status + '\n';
225 + }
226 + if (event.location) {
227 + tooltip = tooltip + "$services.localization.render('xwiki.calendar.event.location') " + event.location + '\n';
228 + }
229 + if (event.description) {
230 + tooltip = tooltip + "$services.localization.render('xwiki.calendar.event.description') " + event.description;
231 + }
232 + element.attr('title', tooltip);
233 + },
234 + loading: function( isLoading) {
235 + if (isLoading) {
236 + if (typeof progressNotification === 'undefined') {
237 + progressNotification = new XWiki.widgets.Notification(
238 + "$escapetool.javascript($services.localization.render('xwiki.calendar.notification.loading'))", 'inprogress');
239 + } else {
240 + var oldNotification = progressNotification;
241 + progressNotification = new XWiki.widgets.Notification(
242 + "$escapetool.javascript($services.localization.render('xwiki.calendar.notification.loading'))", 'inprogress');
243 + oldNotification.replace(progressNotification);
244 + }
245 + } else {
246 + var oldNotification = progressNotification;
247 + progressNotification = new XWiki.widgets.Notification(
248 + "$escapetool.javascript($services.localization.render('xwiki.calendar.notification.loaded'))", 'done');
249 + oldNotification.replace(progressNotification);
250 + }
251 + }
252 + });
253 + }
169 169  
255 + // Load the calendar in edit mode.
256 + $(window).on('xwiki:dom:updated', function() {
257 + init();
258 + });
259 + // Load the calendar in view mode.
260 + $(document).ready(function() {
261 + init();
262 + });
263 + });
170 170  });
171 171  </script>
172 172  {{/html}}
173 -{{velocity}}
267 +{{/velocity}}
XWiki.WikiMacroParameterClass[0]
Parameter-Vorgabe
... ... @@ -1,0 +1,1 @@
1 +AIzaSyDedBXsLGUPKGT2SKh1aZXXJZKdpEc8bQU
Parameter-Beschreibung
... ... @@ -1,19 +1,1 @@
1 -URL to a page generating JSON. Example format:
2 -
3 -[
4 -    {
5 -        "id": 111,
6 -        "title": "Event1",
7 -        "start": "2012-06-10",
8 -        "url": "http://yahoo.com/"
9 -    },
10 -    {
11 -        "id": 222,
12 -        "title": "Event2",
13 -        "start": "2012-06-20",
14 -        "end": "2012-06-22",
15 -        "url": "http://yahoo.com/"
16 -    }
17 -]
18 -
19 -This is only needed if the JSON generated by the Calendar.JSONService does not fit your needs. The Calendar.JSONService can query events from any class with a date and a duration field (string)
1 +Key for the Google Calendar API.
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -json
1 +gApiKey
XWiki.WikiMacroParameterClass[1]
Parameter-Beschreibung
... ... @@ -1,13 +1,1 @@
1 -URL page to update events when they are moved or resized in the Calendar. The following parameters are passed:
2 -
3 -* classname: the classname holding the object (from the classname parameter of the macro)
4 -* startfield: the startdate field where the event start date is stored (from the startfield parameter of the macro)
5 -* durationfield: the duration field where the event duration is stored as a string (from the durationfield parameter of the macro)
6 -* isResize: if the event is resized, otherwise the event start date is moved
7 -* deltaDays: the delta in days of the move or resize
8 -* deltaMinutes: the delta in minutes of the move or resize
9 -* allDay: if the event is moved to be an allDay event
10 -
11 -The default update service handles updating a document holding a specific classname with a start date and a duration field as specified in the macro parameters.
12 -
13 -The editable parameter needs to be set to true for this field to be used.
1 +Google calendar IDs separated by commas.
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -updateurl
1 +gCal
XWiki.WikiMacroParameterClass[2]
Parameter-Beschreibung
... ... @@ -1,1 +1,19 @@
1 -Classname where the event objects are stored. The parameter is necessary unless a JSON service and and Update URL are provided
1 +URL to a page generating JSON. Example format:
2 +
3 +[
4 +    {
5 +        "id": 111,
6 +        "title": "Event1",
7 +        "start": "2012-06-10",
8 +        "url": "http://yahoo.com/"
9 +    },
10 +    {
11 +        "id": 222,
12 +        "title": "Event2",
13 +        "start": "2012-06-20",
14 +        "end": "2012-06-22",
15 +        "url": "http://yahoo.com/"
16 +    }
17 +]
18 +
19 +This is only needed if the JSON generated by the Calendar.JSONService does not fit your needs. The Calendar.JSONService can query events from any class with a date and a duration field (string)
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -classname
1 +json
XWiki.WikiMacroParameterClass[3]
Parameter-Vorgabe
... ... @@ -1,1 +1,0 @@
1 -datetime
Parameter-Beschreibung
... ... @@ -1,1 +1,13 @@
1 -Field in the object where the start date of the events are stored. The field needs to be a date field. The parameter is necessary unless a JSON service and and Update URL are provided
1 +URL page to update events when they are moved or resized in the Calendar. The following parameters are passed:
2 +
3 +* classname: the classname holding the object (from the classname parameter of the macro)
4 +* startfield: the startdate field where the event start date is stored (from the startfield parameter of the macro)
5 +* durationfield: the duration field where the event duration is stored as a string (from the durationfield parameter of the macro)
6 +* isResize: if the event is resized, otherwise the event start date is moved
7 +* deltaDays: the delta in days of the move or resize
8 +* deltaMinutes: the delta in minutes of the move or resize
9 +* allDay: if the event is moved to be an allDay event
10 +
11 +The default update service handles updating a document holding a specific classname with a start date and a duration field as specified in the macro parameters.
12 +
13 +The editable parameter needs to be set to true for this field to be used.
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -startfield
1 +updateurl
XWiki.WikiMacroParameterClass[4]
Parameter-Vorgabe
... ... @@ -1,1 +1,0 @@
1 -duration
Parameter-Beschreibung
... ... @@ -1,1 +1,1 @@
1 -Field in the object where the duration of the events are stored. The field needs to be a date field. The parameter is necessary unless a JSON service and and Update URL are provided
1 +Classname where the event objects are stored. The parameter is necessary unless a JSON service and and Update URL are provided
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -durationfield
1 +classname
XWiki.WikiMacroParameterClass[5]
Parameter-Vorgabe
... ... @@ -1,1 +1,1 @@
1 -true
1 +datetime
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +Field in the object where the start date of the events are stored. The field needs to be a date field. The parameter is necessary unless a JSON service and and Update URL are provided
Parameter verpflichtend
... ... @@ -1,1 +1,0 @@
1 -Nein
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -editable
1 +startfield
XWiki.WikiMacroParameterClass[6]
Parameter-Vorgabe
... ... @@ -1,1 +1,0 @@
1 -month
Parameter-Beschreibung
... ... @@ -1,7 +1,1 @@
1 -default agenda to show on load of the agenda. Possible values are:
2 -
3 -month
4 -agendaWeek
5 -agendaDay
6 -basicWeek
7 -basicDay
1 +Field in the object where the duration of the events are stored. The field needs to be a date field. The parameter is necessary unless a JSON service and and Update URL are provided
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -defaultView
1 +durationfield
XWiki.WikiMacroParameterClass[7]
Parameter-Vorgabe
... ... @@ -1,0 +1,1 @@
1 +true
Parameter-Beschreibung
... ... @@ -1,2 +1,0 @@
1 -Year of the date to show when loading the calendar. Leave empty for today
2 -
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -year
1 +editable
XWiki.WikiMacroParameterClass[8]
Parameter-Vorgabe
... ... @@ -1,0 +1,1 @@
1 +month
Parameter-Beschreibung
... ... @@ -1,2 +1,7 @@
1 -Month (from 0 to 11) of the date to show when loading the calendar. Leave empty for today
1 +default agenda to show on load of the agenda. Possible values are:
2 2  
3 +month
4 +agendaWeek
5 +agendaDay
6 +basicWeek
7 +basicDay
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -month
1 +defaultView
XWiki.WikiMacroParameterClass[9]
Parameter-Beschreibung
... ... @@ -1,2 +1,2 @@
1 -Day (from 1 to 31) of the date to show when loading the calendar. Leave empty for today
1 +Year of the date to show when loading the calendar. Leave empty for today
2 2  
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -date
1 +year
XWiki.WikiMacroParameterClass[10]
Parameter-Vorgabe
... ... @@ -1,1 +1,0 @@
1 -1
Parameter-Beschreibung
... ... @@ -1,1 +1,2 @@
1 -First day (from 0 being Sunday to 6 being Monday) of the week to show in the calendar. Leave empty for Monday
1 +Month (from 0 to 11) of the date to show when loading the calendar. Leave empty for today
2 +
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -firstDay
1 +month
XWiki.WikiMacroParameterClass[11]
Parameter-Beschreibung
... ... @@ -1,2 +1,2 @@
1 -First hour to show in the calendar. Leave empty for default
1 +Day (from 1 to 31) of the date to show when loading the calendar. Leave empty for today
2 2  
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -firstHour
1 +date
XWiki.WikiMacroParameterClass[12]
Parameter-Vorgabe
... ... @@ -1,1 +1,1 @@
1 -8
1 +1
Parameter-Beschreibung
... ... @@ -1,2 +1,1 @@
1 -First time to show in the calendar. Users won't see hours before this time. Leave empty for default (8.00)
2 -
1 +First day (from 0 being Sunday to 6 being Monday) of the week to show in the calendar. Leave empty for Monday
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -minTime
1 +firstDay
XWiki.WikiMacroParameterClass[13]
Parameter-Vorgabe
... ... @@ -1,1 +1,0 @@
1 -23
Parameter-Beschreibung
... ... @@ -1,2 +1,2 @@
1 -Last time to show in the calendar. Users won't see hours before this time. Leave empty for default (23.00)
1 +First hour to show in the calendar. Leave empty for default
2 2  
Parameter-Name
... ... @@ -1,1 +1,1 @@
1 -maxTime
1 +firstHour
XWiki.WikiMacroParameterClass[14]
Parameter-Vorgabe
... ... @@ -1,0 +1,1 @@
1 +8:00
Parameter-Beschreibung
... ... @@ -1,0 +1,2 @@
1 +First time to show in the calendar. Users won't see hours before this time. Leave empty for default (8.00)
2 +
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +minTime
XWiki.WikiMacroParameterClass[15]
Parameter-Vorgabe
... ... @@ -1,0 +1,1 @@
1 +23:00
Parameter-Beschreibung
... ... @@ -1,0 +1,2 @@
1 +Last time to show in the calendar. Users won't see hours after this time. Leave empty for default (23.00)
2 +
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +maxTime
XWiki.WikiMacroParameterClass[16]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +Field in the object where the end date of the events are stored. The field needs to be a date field. The parameter is necessary unless a JSON service and and Update URL are provided
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +endfield
XWiki.WikiMacroParameterClass[17]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +The URL to access a calendar in iCal format (.ics file). If this parameter is used, the JSON one should be empty.
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +iCal
XWiki.WikiMacroParameterClass[18]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +Provide extra fields to be displayed in the event tooltip. An empty list or a list of exactly 3 values that represent event description, event location and event status, in this order, is expected.
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +extraFields