My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 123: Possible to combine local events and gcal events?
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2009


Sign in to add a comment
 
Reported by c.cieszy...@gmail.com, Oct 13, 2009
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
#1 macdonal...@gmail.com
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.
Oct 13, 2009
Project Member #2 adamrs...@gmail.com
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
#3 kneid...@gmail.com
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
#4 dan...@gmail.com
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

Powered by Google Project Hosting