Custom "nocode" calendar month view: stacking multiday events

Hi there,

I am trying to build a custom calendar view in weweb using the date plugin, make it as no-code as possible. It went quite well, but now I have an issues issue sorting/stacking overlapping multi-day events.

In each date cell I have a div container of the events. Using conditional rendering I render event item block on each date from, between and up and unitl the end date. It works, but when I have overlapping multi-day events, sorting/stacking goes wrong. I tried to sort by start/end/id but that doesn’t work.

Am I now thinking to try to somehow render event row containers and try to assign each event to the correct row.

I anyone has a better idea please let me know