1
votes

I want to be able to view 3 large months at a time using FullCalendar by Adam Shaw in my WP site. Possible? In other words, current month, plus two more. A 90 day events Calendar starting with the if the current date falls in a given month. Example, today is July 26, so display July, Aug, Sept.

Any ideas? I am calling it for use in a WP Events manager application.

Thanks,

1

1 Answers

1
votes

Create three FullCalendar instances next to each other:

  • Set the defaultView for all three to 'month'.
  • Disable the previous and next buttons for two of the three calendar instances by manipulating their headers.
  • Disable any other views (like agendaDay, agendaWeek, etc.) in all calendar headers.
  • Whenever the viewDisplay callback is called on the calendar with the previous and next buttons, update the other calendar's date using gotoDate.

If you also need to use a week and/or day view, you may wish to set them up in a similar way, although I can imagine that would be confusing. You could also hide (using CSS) two of the three calendars when the user navigates to day or week view, and make them reappear when the user selects month view again. You probably need some CSS hocus pocus anyway to make it all look slick, but I think it should be doable.