Eventview / Calender: Is there any system out there to render calenderevents

Hello

I need a way to display events on a homepage. In the end it should look like this:

grafik

This schoolhomepage is the perfect example of the ideal endresult.

https://www.igs-floetenteich.de/kalender/

I would like to ask you, if there is any system at all to render events. I am at a point where I will take anything. The current workflow (Outlook --> ICS --> Joomla --> Calenderplugin) doesn’t seem to work (as in: Outlook --> ICS --> Kirby --> FullCalender.io-Plugin)

I asked about that here: Parsing ICS to populate a calender (here: FullCalender.io) and googled a lot.

Thanks :slight_smile:

Is export from Outlook needed? What other formats can you export to instead of ICS?

There are PHP libraries for parsing ICS you could use, but for FullCalender.io JSON export would probably be better suited.

I guess managing the calendar in Kirby is not an option?

Right now the events are mananged using Outlook. But in fact, the calender is hosted on a Ionos (1&1)-Server within Nextcloud.

Right now we export the .ics-file from Outlook. In theory, Nextcloud can export JSON. But the JSON is not compatible with the needed JSON (my internal ‘Bugreport’ is here: https://gitlab.com/cniehaus/kgskirby/-/issues/7) .

I might work around this by using regex to convert Nextclouds JSON to the needed JSON.

We could move from managing in Outlook to Thunderbird oder the Nextcloud-WebInterface, but no to the homepage run by Kirby. That page is strictly readonly.

Hm, this is completely beyond Kirby support. and a matter of converting your JSON to a format FullCalendar.io can read.

Ive worked with events in Kirby a fair bit, including using Fullcalender to display events created as pages within kirby and those coming in from a Google Calender. Fullcalendar only works with public calenders. If the outlook calendar needs authentication like a login or something, then you are out of luck.

I think your best idea is to use a PHP library (like this one https://libraries.io/github/OzzyCzech/icalparser) to turn the events into virtual pages. You can then feed those into Fullcalender.

You might find two of my plugins useful…

Gets recurring dates from between a range (so for example if an event always happens on every second tuesday of the month, Recurr will give you the dates of all of those tuesdays for as a many months and years as you need.) It can also turn a date into a Recurr rule that Fullcalendar understands.

Yasumi will get you all the dates of public and religious holidays for any country in the world and for any year. You can plot these on the calendar.

I hope that helps.

p.s i made this for kirby 2, but it is a working example using kirby pages as events, mixing them with Google calendar events, and displying both on Fullcalendar. Maybe theres something useful in that you use for your project. (note that there is now a decent GCal plugin for Kirby 3 so you can use that instead of all the manual API stuff in the repo below.)

Why would you want to to that instead directly feeding the JSON into Fullcalendar.io?

Multiple options are always useful :slight_smile: sounds like the JSON wrangling to get it into the correct format might be problematic. Good to have a plan B.

I agree that multiple options are often useful, but in this case, you might as well either parse the ical data and get useful json from that (for example using ical.js as described in the issue), or do something with the JSON export, without going the virtual pages route, because then you have an additional, imho unnessary step. Unless I’m missing something…

1 Like

We can find the ical format e.g. at https://en.wikipedia.org/wiki/ICalendar, at the end we find at “External links” the links to the RFCs, so you can import or parse the files from the Outlook export.

I setteled for using Google Calender as an itermediate step. So it is now:

Outlook -> Nextcloud -> Google Calender -> FullCalender.io

FullCalender.io is about to release a major version, who knows…
Using Google sucks but at least it works.

Thanks you for all you replies!