Is It possible to show events from a ics file?
Is there a way to load a bulk events into the scheduler?
Thanks for your support
>> Is It possible to show events from a ics file?
Scheduler can load data in XML or iCal format
dhtmlx.com/dhxdocs/doku.php?id=d … al_loading
Thanks for your reply!
Which is the file that I have to modify in order to load events from an ical file in dhtmlxscheduler joomla plugin?
My iCal file has about 9000 events, which could be the best way to load them into dhtmlxscheduler? if there are some code to figure out I really appreciate that
Thanks!!!
=)
Related to add new events into scheduler, I saw a table events_rec which contains the data of the calendar. Is it possible to import data into the table from an ical file?
I’d ilke to publish two calendars with different event category, which is your advice in order to do that?
Thank you.
Technically the scheduler will be able to load iCal file of any size, but for 9k events it will be slow. So the best way is to import events in DB and use dynamic-loading mode of scheduler, to load only events which are visible in a current view.
While importing normal events is not a problem, format of recurring events in scheduler and in iCal format are very different and can’t be easily converted
I see,
Could you please show me how to import events in DB and coding dynamic-loading mode of scheduler on Joomla plugin?
Thank you!
Hi!,
any workaround about import events into DB and coding dymanic-loading mode on joomla plugin?
Somebody show me how to do that, please
=)
Hello,
>> any workaround about import events into DB
we don’t have a ready solution
>> coding dymanic-loading mode on joomla plugin
you can place scheduler.setLoadingMode(‘month’) in the scheduler initialization, the components\com_scheduler\models\scheduler.php file:
scheduler.init(“scheduler_here”,null,"’.$options[‘default_mode’].’");
scheduler.setLoadingMode(“month”);
Thanks for your reply
I’m going to coding your suggestion =)
I think I have another question. It’s about how can I get data from an ics file, I don’t know which file do I have to modify. Could you please show me how to do that?
I really appreciate all the support you give us!!!
Thanks a lot!
If you want to load events from ics file, the following can be used:
scheduler.load(“events.ics”,“ical”);
Where “events.ics” path to file.
Thanks
which file does need be modified???
Regards!!!
scheduler initialization is in the components\com_scheduler\models\scheduler.php file. You can replace existent load method call with the necessary one:
//scheduler.load("’.JURI::root().'components/com_scheduler/events_rec.php?uid="+scheduler.uid());
scheduler.load(“events.ics”,“ical”);
I did the code changes suggested with no success.
this is the situation:
Ics file is located at the same folder that scheduler.php is. The ics file name is moon.ics and I add the following line below the commented one you suggest.
scheduler.load(“moon.ics”,“ical”);
scheduler sends no error but an empty calendar, any advice??
Thank you!!
You should define the path starting from the site root.
I’m still load ics file whith no success, following your recomendation I define the ics path as below.
scheduler.load("’.JURI::root().'components/com_scheduler/models/moon.ics",“ical”);
Is there anything wrong?
Thank you!
On page of scheduler, please check the generated source ( ctrl-u ) , and try to use path inside the load command ( from the generated source ) in separate window of a browser.
Does it loading file or returning some kind of error?
Actually there is an error:
Message: Permission denied
Line: 1
Char: 2547
Code: 0
URI: (server/joomla/components/com_scheduler/codebase/dhtmlxscheduler.js
moon.ics file has 777 file permissions, any advice?
thank you!
Be sure that domains used in load command and in url of page are the same. Javascript can’t operate with data not from the same domain ( the domains need to be fully exactly , including www part if it exists )
Also , you can import data in DB, instead of loading from ical file
- grab support.dhtmlx.com/x-files/sched … altodb.zip
- unpack it on same server where joomla resides
- run index.php
- fill db connection parameters ( table name is �events_rec�), chose ical file for importing
- press import button
Hello,
the domain used in load command is the same that the url, any other idea?
thank you