Hello everyone, i’m stuck with a problem right now. I want to change the output of the week-info API to match the requirements of fullcalendar, to display events on our homepage. Am I right in the ApiController.php? I want to change “name:” into “title:” and “starts:” into “start:” and “ends:” into “end:”.
I wouldn’t recommend making those changes in Libretime. What if you just loop into the week-info API and change the key names in your homepage instead?
thanks for the answer and the given examples. I got it working by tweaking the code a little bit. Unfortunately FullCalendar isn’t able to read the resulting data. I guess it has to do with the structure and that for every day (monday, tuesday…) there is a own JSON-Object. Do you know about this? And is there a way to merge all of those objects into one?