Jump to:

10845 Posts in 2513 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Event-Calendar with different theme as blackcandy?

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1408 Views
  • Nauri
    Avatar
    Community Member
    11 Posts

    Event-Calendar with different theme as blackcandy? Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event-Calendar with different theme as blackcandy? Link to this post

    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

  • Nauri
    Avatar
    Community Member
    11 Posts

    Re: Event-Calendar with different theme as blackcandy? Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event-Calendar with different theme as blackcandy? Link to this post

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

  • Nauri
    Avatar
    Community Member
    11 Posts

    Re: Event-Calendar with different theme as blackcandy? Link to this post

    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
  • UncleCheese
    Avatar
    4085 Posts

    Re: Event-Calendar with different theme as blackcandy? Link to this post

    What is the Javascript error you're getting?

  • Nauri
    Avatar
    Community Member
    11 Posts

    Re: Event-Calendar with different theme as blackcandy? Link to this post

    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

  • Kiwipearls
    Avatar
    Community Member
    34 Posts

    Re: Event-Calendar with different theme as blackcandy? Link to this post

    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.

    1408 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.