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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2365 Views

Avatar
Nauri

Community Member, 11 Posts

21 January 2011 at 7:21am

Hi,

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?

Thanks,

Nauri

Avatar
UncleCheese

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/Calendar.ss to /themes/your_theme/templates/Layout/Calendar.ss, run ?flush=1, and modify the templates to work with your site.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
Nauri

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!

Avatar
UncleCheese

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?

Avatar
Nauri

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
Avatar
UncleCheese

Forum Moderator, 4102 Posts

22 January 2011 at 7:48am

What is the Javascript error you're getting?

Avatar
Nauri

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

http://****/event_calendar/javascript/jquery.datePicker.js?m=1297080494

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):
    c._renderCalendar();
called from line 622, column 5 in <anonymous function: init>(s):
    this.display();
called from line 276, column 5 in <anonymous function: datePicker>():
    controller.init(s);
called from line 579, column 4 in <anonymous function: each>(object, callback, args):
    for ( var value = object[0];
called via Function.prototype.call() 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:
    jQuery('#calendar-widget')

In Internet Explorer everything works without error.

Thanks,

Nauri

Avatar
Kiwipearls

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.