| Issue 123: | Possible to combine local events and gcal events? | |
| 2 people starred this issue and may be notified of changes. | Back to list |
I'd like to use both my gcal feed and locally inserted events (like those included in the basic.html example file in one calendar? Can someone please provide me with a sample of the code I'd use to do so? Thanks!
Oct 13, 2009
yes, the eventSources option will do the trick (http://arshaw.com/fullcalendar/docs/events-and-sources.php) macdonaldjim makes a good example, thanks
Status:
Done
Nov 2, 2013
how would this work with local events that dont come from events.php - but rather loaded within the page - along side those coming from google? Thanks!
Dec 10, 2015
To anyone finding this later, version 2 supports this directly through eventSources. You can mix anything, including a list of events with one or more references to google calendars. |
|
| ► Sign in to add a comment |
Here's how I have done this: // create array var myArray = new Array(); // first is array element of my events pulled from database myArray[0] = "events.php"; // second element is your Google calendar feed myArray[1] = $.fullCalendar.gcalFeed('your Google calendar feed here'); . . . . . // further in the code set your source like this eventSources: myArray, ------------------------------------------------- Not sure if this is the best way but it works for me.