Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Event-Calendar with different theme as blackcandy?

Go to End

8 Posts   1937 Views


Community Member, 11 Posts

21 January 2011 at 7:21am


I need your help!

I'm testing the module Event Calendar. When I use theme blackcandy, it all works. But not with other theme (for example, curiouslygreen): Calendar-widget will not load, the format is wrong.

Can someone please help?




Forum Moderator, 4102 Posts

22 January 2011 at 4:02am

The templates that come with EventCalendar are just examples. They're not meant for your production site. You need to copy them to their respective directories in your theme folder. E.g. copy /event_calendar/templates/Layout/ to /themes/your_theme/templates/Layout/, run ?flush=1, and modify the templates to work with your site.

SilverStripe tips, tutorials, screencasts and more:


Community Member, 11 Posts

22 January 2011 at 4:57am

Thanks for your answer!

Unfortunately it did not work ((

I copied the calendar template files to theme / template. Calendar widget does not load.

Another idea? Please!


Forum Moderator, 4102 Posts

22 January 2011 at 5:39am

What do you mean "calendar widget does not load"? Are you getting any Javascript errors?


Community Member, 11 Posts

22 January 2011 at 6:10am

Edited: 22/01/2011 6:24am

I can not see calendar (see the picture).
I see "loading" the word, but nothing happens...

no javascript error


oops. oops. IE displays the calendar but not formatted correctly (see the other picture)

The first image is in the mozilla.

Please, help!!!

sorry for my english

Attached Files

Forum Moderator, 4102 Posts

22 January 2011 at 7:48am

What is the Javascript error you're getting?


Community Member, 11 Posts

22 January 2011 at 8:58am

Edited: 18/02/2011 5:06am

I'm back... ))

In Mozilla Firefox:

$td.attr("class") is undefined


In Opera

Uncaught exception: TypeError: Cannot convert '$td.attr('class')' to object
Error thrown at line 930, column 5 in <anonymous function: cellRender>($td, thisDate, month, year):
    if(d.getTime() >= c.rangeStart.getTime() && d.getTime() <= c.rangeEnd.getTime() && !$td.attr('class').match('weekbutton'))
called from line 152, column 6 in <anonymous function: renderCalendar>(s):
    s.renderCallback(d, currentDate, month, year);
called from line 965, column 4 in <anonymous function: _renderCalendar>():
    $('.dp-calendar', this.context).renderCalendar(
called from line 878, column 4 in <anonymous function: display>(eleAlignTo):
called from line 622, column 5 in <anonymous function: init>(s):
called from line 276, column 5 in <anonymous function: datePicker>():
called from line 579, column 4 in <anonymous function: each>(object, callback, args):
    for ( var value = object[0];
called via from line 245, column 2 in <anonymous function: each>(callback, args):
    return jQuery.each( this, callback, args );
called from line 255, column 3 in <anonymous function: datePicker>(s):
    return this.each(
called from line 3, column 1 in <anonymous function>() in http://***/event_calendar/javascript/calendar_widget.js?m=1297080493:

In Internet Explorer everything works without error.




Community Member, 34 Posts

26 March 2012 at 11:08am

I get this problem too. When viewing the calendar in google chrome using default theme Black calendar, the calendar widget is there.

But when I switch to my theme olivesunset - calendar in right block goes poof. Can only use the drop down boxes to find a date.

but yet with my theme olivesunset I can see it in IE but just not googlechrome. So I assume I have to add something to my theme to make the calendar display?

Like you I am new to SS too. Still learning.