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.

All other Modules

Discuss all other Modules here.

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

Event-Calendar with different theme as blackcandy?


8 Posts   1471 Views


21 January 2011 at 7:21am Community Member, 11 Posts


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?




22 January 2011 at 4:02am 4085 Posts

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:


22 January 2011 at 4:57am Community Member, 11 Posts

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!


22 January 2011 at 5:39am 4085 Posts

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


22 January 2011 at 6:10am (Last edited: 22 January 2011 6:24am), Community Member, 11 Posts

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

22 January 2011 at 7:48am 4085 Posts

What is the Javascript error you're getting?


22 January 2011 at 8:58am (Last edited: 18 February 2011 5:06am), Community Member, 11 Posts

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.




26 March 2012 at 11:08am Community Member, 34 Posts

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.