Consortium
Activities
Projects
Forge
Events
Log-in
Register
Event Calendar
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
1 Event Calendar #if($request.month) #if($request.month.startsWith("+")==true) #set($cmonth = $xwiki.parseInt($request.month.substring(1))) #else #set($cmonth = $xwiki.parseInt($request.month)) #end #else #set($cmonth = 0) #end #set($pmonth = (-1+$cmonth)) #set($nmonth = ($cmonth+1)) #if($pmonth>0) #set($spmonth = "%2b${pmonth}") #else #set($spmonth = "${pmonth}") #end #if($nmonth>0) #set($snmonth = "%2b${nmonth}") #else #set($snmonth = "${nmonth}") #end [Previous Month>$doc.name?month=${spmonth}] [Next Month>$doc.name?month=${snmonth}] #set($cview = $xwiki.calendar) #set($cparams = $cview.calendarParams) $cparams.put("month",$request.get("month")) $cview.getHTMLCalendar($cparams, "") 1.1 Event List #foreach($event in $doc.getObjects("XWiki.CalendarEvent")) * $xwiki.getLocalUserName($event.user) $event.startDate $event.endDate $event.description #end * Use <a href="$doc.getURL("edit","xpage=editobject")">edit object</a> to modify or remove existing events. 1.1 New Event #set($cclass = $xwiki.getDocument("XWiki.CalendarEvent").getxWikiClass()) #set($event = $cclass.newObject()) <form action="$doc.getURL('objectadd')" method="get"> <p> <input type="hidden" name="classname" value="XWiki.CalendarEvent" /> <input type="hidden" name="xredirect" value="${doc.getURL('view')}" /> <table> <tr> #set($pclass = $cclass.get("user")) <td>Location:</td><td>$doc.displayEdit($pclass,"XWiki.CalendarEvent_",$event)<td> </tr> <tr> #set($pclass = $cclass.get("startDate")) <td>Start date inclusive (dd/mm/yyyy):</td><td> $doc.displayEdit($pclass,"XWiki.CalendarEvent_",$event) </td></tr> <tr> #set($pclass = $cclass.get("endDate")) <td>End date inclusive (dd/mm/yyyy):</td><td> $doc.displayEdit($pclass,"XWiki.CalendarEvent_",$event) </td></tr> <tr> #set($pclass = $cclass.get("description")) <td>Description:</td><td> $doc.displayEdit($pclass,"XWiki.CalendarEvent_",$event) </td></tr> <tr><td></td><td> <input type="submit" value="Add this event" /> </tr> </table> </form>