I am considering making my own plugin to get a set of particular events from one calendar to show up in another calendar.
I feel confident enough on how to start my work on this plugin, except that I will need one advise on how to populate the selected events back to the main event-variables in the calendar.cgi-file? I am planning to use the 'display_before_getEvents'-handle to select the events from the other calendar.
As far as I can see, the getEvents-procedure will overwrite whats already put in there if I am using $Template::EVENTS? As calendar.cgi is doing this:
$Template::EVENTS = $events;
Any suggestions? Rewrite this one line in the calendar.cgi-file?
Otherwise I could end further processing from my plugin and do it all inside my plugin... This does not seems like an good option to me as it might cause problems with other plugins in the future.
(I am already using Meta Calendar, to gather info from several calendars including those in question. In this case I will only select a set of events matching a given criteria).