Hi to all,
i checked the default calendar module and found an approach:
If i manipulate following code:
calendar.js, Line 338:
var today = moment().startOf("day");’ to var today = moment().subtract(60,'d').startOf("day");
and
calendarfetcher.js, Line 74:
var today = moment().startOf("day").toDate(); to var today = moment().subtract(60,'d').startOf("day").toDate();
the calendar module of my MM will show calendar entries starting Date of two month ago (today-60 days).
Now i have to add following functions:
notification received function for ±5 days (for example)
manipulate variable today with value of notification received
pass variable today to the right place in code of calender.js and calendarfetcher.js
refresh module after receiving notification
stop sending notification from calendar to other modules, in case variable today is manipulated
Sources: https://momentjs.com/docs/#/manipulating/add/
Greets
AxLED