This macro displays a nice calendar.

For downloading the latest version and instructions how to install the macro please visit:

http://su2.info/tavi_calendar/

Features are:

You can see the macro in action [here] (careful, this is German ;-))


Each page has its own calendar

There are some groups in my wiki, and all of them want a calendar page.

Here is the patch, and no default page is required =)

@@ -46,7 +46,7 @@
 $calendar_display_events=true;

 // This is the prefix of the pages linking to the dates.
-$calendar_page_prefix="TerminPlaner";
+$calendar_page_prefix=$page;

 // You can set a locale here to use other languages.
 // setlocale (LC_ALL, 'de_DE');
@@ -85,12 +85,13 @@
 // ======================================================================


-function view_macro_calendar()
+function view_macro_calendar($args)
 {
        global $calendar_months_start, $calendar_months_number, $calendar_month_wrap, $calendar_display_events;


        $r="";
+       if(strlen($args) && is_numeric($args) && $args < $calendar_months_number) $calendar_months_number=$args;

        // start configured number of months before/ahead
        $itime=mktime(0,0,0,date("m"),16,date("Y"))+$calendar_months_start*2592000;

Does this work with 'Tavi v. .23?

I don't see any reasons why it shouldn't work with v. 0.23. But that being said I haven't tried it. And in a few version when plugins hopefully will be available, I will suggest for the creator to make it a plugin. --EvenHolen
It works with no problem. --hlb

Wakka has a interesting and well designed calendar showing an "edit" button on each day of a month. --AaronLaw