Hello,
I really need help with this one.
(can be a paid job if needed)
I am using Fullcalendar to display a bunch of entries as events.
The way the whole CRM has been coded, the events that must be displayed are Repeatable regions.
The main clonable page is "contracts". And inside a contract, I can add multiple events using repeatable regions.
Everything works fine the way I have coded it, except that since I'm using repeatable regions (and for now there's no way to change it for something else), Couch fetches ALL contracts (I've added a parameter in the masterpage section to get only the contracts from 18 months and earlier), and THEN, places all the events. So it takes around 10 seconds for the page to load.
I need to find a way to fetch the events from ALL contracts, but actually display and load in the ones within the selected month in Fullcalendar.
For example, if the page loads on March 2021 (I have set it to load on the current month), I need it to display all the contracts that have dates in the repeatable regions from that current month only. And then if I change month, it should loads the other month only. In short, being able to load one month at a time, but not by using the publish_date variable, since the dates are in repeatable regions. Some contracts have multiple events (multiple rows in the "event_details" repeatable region).
I know it's far from optimal to use Repeatable regions for that, but that's the way it has been coded few years ago and I have to work with that for now.
I thought of using couch search system too. It's ok if I'm not using Fullcalendar.
All I need, is to display a list of events, per days.
Right now it looks like this, and this is the kind of format I must keep (a table header with the date, followed by the events for that date, and so on).
If I can make something like this without Fullcalendar, just by using Couch functions, it would be fine too.
Thank you very much
I really need help with this one.
(can be a paid job if needed)
I am using Fullcalendar to display a bunch of entries as events.
The way the whole CRM has been coded, the events that must be displayed are Repeatable regions.
The main clonable page is "contracts". And inside a contract, I can add multiple events using repeatable regions.
Everything works fine the way I have coded it, except that since I'm using repeatable regions (and for now there's no way to change it for something else), Couch fetches ALL contracts (I've added a parameter in the masterpage section to get only the contracts from 18 months and earlier), and THEN, places all the events. So it takes around 10 seconds for the page to load.
I need to find a way to fetch the events from ALL contracts, but actually display and load in the ones within the selected month in Fullcalendar.
For example, if the page loads on March 2021 (I have set it to load on the current month), I need it to display all the contracts that have dates in the repeatable regions from that current month only. And then if I change month, it should loads the other month only. In short, being able to load one month at a time, but not by using the publish_date variable, since the dates are in repeatable regions. Some contracts have multiple events (multiple rows in the "event_details" repeatable region).
I know it's far from optimal to use Repeatable regions for that, but that's the way it has been coded few years ago and I have to work with that for now.
I thought of using couch search system too. It's ok if I'm not using Fullcalendar.
All I need, is to display a list of events, per days.
Right now it looks like this, and this is the kind of format I must keep (a table header with the date, followed by the events for that date, and so on).
If I can make something like this without Fullcalendar, just by using Couch functions, it would be fine too.
Thank you very much