Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Porting dhtmlxScheduler to silverstripe module

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1390 Views
  • hopey
    Avatar
    Community Member
    4 Posts

    Porting dhtmlxScheduler to silverstripe module Link to this post

    Hi, I haven't found a good calendar system for Silver Stripe and I've been thinking about porting dhtmlxScheduler to Silverstripe. dhtmlxScheduler has already been ported to Wordpress, joomla and drupal, so I think it could be done to SS too.

    http://www.dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml

    What it needs is:

    1) Database integration to SS. From the start it uses just:

    <?php
       include ('../../../codebase/connector/scheduler_connector.php');
       include ('../../common/config.php');
       
       $res=mysql_connect($server, $user, $pass);
       mysql_select_db($db_name);
       
       $scheduler = new schedulerConnector($res);
       //$scheduler->enable_log("log.txt",true);
       $scheduler->render_table("events","event_id","start_date,end_date,event_name,details");
    ?>

    and then uses its own scripts to handle the mysql data. What would be the easiest way to make it to use SS database abstraction?

    2) It needs to show static calendar page on web site. This is easy.

    3) It needs to give an editable php/ajax site on CMS side. Can this be done by adding a field to this site types main tab? Do I need to define a custom field or something? By quick looking I have found only some text field etc that can be added to the cms tabs.

  • hopey
    Avatar
    Community Member
    4 Posts

    Re: Porting dhtmlxScheduler to silverstripe module Link to this post

    Got it working in admin section just with:

    function getCMSFields() {

    $fields = parent::getCMSFields();
    $fields->removeFieldFromTab("Root.Content.Main","Content");
    $fields->addFieldToTab("Root.Content.Main", new LiteralField('scheduler', '<iframe src ="mysite/code/scheduler.html" width="100%" height="100%"> </iframe>'));

    return $fields;

    }

    Only thing left is database integration and making it a decent module.

    1390 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.