Diem plugins syndication


Displays the days in from a month in a list along with events attached to them

dmWidgetEventCalendarPlugin displays the days in from the current month in a list.
You can attach events to each day and they will be displayed on the calendar.
Events can be populated into the calendar from a model's records if the model implements
the provided interface.


  • In a console, from your project root dir, run:
git clone git://github.com/antitoxic/dmWidgetEventCalendarPlugin.git plugins/dmWidgetEventCalendarPlugin  
  • In config/ProjectConfiguration.class.php, add dmWidgetEventCalendarPlugin to the list of enabled plugins:
class ProjectConfiguration extends dmProjectConfiguration
  public function setup()  
      // your enabled plugins  
  • In a console, from your project root dir, run:
php symfony dm:setup  


Download it

Run in project's directory:

git clone git://github.com/antitoxic/dmWidgetEventCalendarPlugin.git plugins/dmWidgetEventCalendarPlugin  

Enable it

Edit ProjectConfiguration

class ProjectConfiguration extends dmProjectConfiguration  
    public function setup()  

            // your enabled plugins  

Just clear the cache

Run in project's directory:

php symfony cc  

Style the calendar

Include the plugin assets in your apps/front/config/view.yml file:

  - dmWidgetEventCalendarPlugin.view  

Don't forget to publish the plugins' assets:

php symfony dm:publish-assets  

What is provided?

It includes:

  • Event Calendar widget under the Schedule widget category.
  • event_calendar service. Universally reach it via dmContext::getInstance()->getServiceContainer()->getService('event_calendar')
  • Offers dmHtmlCalendarEventInterface that your model should implement in
    order to be valid Event for the calendar.
    Only the following methods should be defined:

    • renderEvent ($day, $isFirstEvent=true) Used to output the event
    • getAdditionalDayClasses You can simply define empty method. Returns
      the classes that will be appended to day markup element
    • getAdditionalDayAttributes You can simply define empty method.
      Returns the attributes that will be appended to day markup element
    • getCalendarDate Returns the date of the event
    • getCalendarDateColumnName STATIC If the CalendarQuery method
      return Doctrine_Query object you can leave this an empty method. be Return the name of the column in the database that represent the date
    • getCalendarQuery ($startDate, $endDate) STATIC You can simply
      define empty method. Otherwise it should be a Doctrine_Query instance.

Widget options

  • showWeekDays Whether to display the names of the week days. Defaults to true.
  • numberPadDays Whether to display days from the following/next month
    that complete the last/first week
  • weekNameFormat Format of the week day names. Either 'EE'(Single letter)
    | 'EEE'(Abbreviated) | 'EEE'(Full name)
  • weekDayStart Which is the first day of the week. Defaults to 'sun'
  • Sunday. One of 'sun','mon','tue','wed','thu','fri','sat' OR 0,1,2,3,4,5,6
  • model Model that implements dmHtmlCalendarEventInterface interface.
    The model's table will be queried to retrieve events from the current month.
  • culture Calendar culture

Example Model class implementation

Here is the minimum if you want Events to be populated into the calendar from a model's records:

class Appointment extends BaseAppointment implements dmHtmlCalendarEventInterface  

    public function getAdditionalDayAttributes()  

    public function getAdditionalDayClasses()  

    public function renderEvent( $day , $isFirstEvent = true )  
        return $day.' '.$this->getClient();  

    public function getCalendarDate()  
        return $this->getScheduledOn();  

    public static function getCalendarDateColumnName()  
        return 'scheduled_on';  
    public static function getCalendarQuery($startDate, $endDate) {  


  • MichaelHahJuly 12, 2017 9:16 AM

    wh0cd315965 [url=http://ashwagandha.reisen/]best ashwagandha brand[/url] [url=http://himplasia.reisen/]himplasia[/url] [url=http://pristiq.reisen/]pristiq[/url] [url=http://imdur.world/]imdur[/url]

  • StewartUlcerAugust 26, 2017 8:11 AM

    wh0cd235645 [url=http://genericlipitor365.us.com/]generic lipitor[/url] [url=http://zithromax247.us.com/]order zithromax online[/url] [url=http://metformin500mgtablets.us.org/]order metformin online[/url]

  • AlfredterSeptember 13, 2017 3:34 AM

    [url=http://divo.tomsk.ru/divo_forum/memberlist.php?mode=viewprofile&u=445140]Cialis From Canada[/url] [url=http://bbs.9rt.com/home.php?mod=space&uid=265723]Buy Cialis Online[/url] [url=http://arhongbao8.com/home.php?mod=space&uid=3392]cialis[/url] [url=http://bbs.hds360.com/home.php?mod=space&uid=51624]online cialis prescription[/url] [url=http://zhshgy.org/bbs/home.php?mod=space&uid=938286]buy cialis online[/url]

  • MichaelHahSeptember 13, 2017 8:05 PM

    [url=http://buystrattera.reisen/]buy strattera[/url]

  • AlfredterSeptember 15, 2017 4:23 AM

    [url=http://www.ejia7.com/home.php?mod=space&uid=275838]cialis from canada[/url]

  • JohnhantySeptember 16, 2017 2:45 AM

    [url=https://paydayloans.us.org/]payday loans[/url]

  • JamesgandySeptember 19, 2017 12:39 AM

    [url=https://paydayloans.us.org/]loans for bad credit[/url]

  • JamesgandySeptember 22, 2017 10:20 PM

    [url=https://essaywritingservices.us.com/]australian essay writing service[/url] [url=https://essayonline.us.com/]https://WriteMyEssay.us.com/[/url]

  • JamesgandySeptember 24, 2017 6:10 AM

    [url=https://freesexchat.us.com/]free sex chat[/url]

  • JamesgandySeptember 28, 2017 5:26 AM

    for more <a href=https://onlineloans.us.com/>easy payday loans online</a> payday loans online [url=https://onlineloans.us.com/]payday loan online[/url]

  • JamesgandyOctober 12, 2017 8:18 AM

    no credit check payday loans online <a href=https://paydayloansonline.us.com/>payday loans online california</a> payday loans online [url=https://paydayloansonline.us.com/]payday loans online[/url]

  • Buy Essays Cheap October 15, 2017 6:00 AM

    website to write essays <a href=https://writemyessay.us.com>HTTPS://WRITEMYESSAY.US.COM/</a> Read This [url=https://writemyessay.us.com]write an essay[/url]

  • JamesgandyOctober 16, 2017 10:01 PM

    online essays <a href=https://essayonline.us.com>write my essay online</a> homework online [url=https://essayonline.us.com]online essay writing[/url]

  • Payday Loan Online October 17, 2017 3:49 PM

    payday loans online <a href=https://onlineloans.us.com/>payday loan direct lender</a> online loan [url=https://onlineloans.us.com/]online loans[/url]

  • JamesgandyOctober 17, 2017 11:12 PM

    chat sex <a href=https://freesexchat.us.com>slut chat</a> live sex chat [url=https://freesexchat.us.com]sex chat free[/url]

Add a comment

Impossible to fetch issues for this plugin.
Impossible to get this plugin changelog.

dmWidgetEventCalendarPlugin, created on May 26, 2011 by antitoxic, used by 36 projects

Fork Diem on GitHub