Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar highlight dates with events

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 3047 Views
  • mage
    Avatar
    Community Member
    10 Posts

    Event Calendar highlight dates with events Link to this post

    Hey Uncle Cheese,

    A few things regarding the event calendar module and what might be possible:

    • Can any days that have events on them be highlighted in the calendar
    • Does the calendar have to have the row picker buttons on the right

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar highlight dates with events Link to this post

    A lot of people have requested highlighting dates with events, but it's a feature that needs to be thought through carefully. The calendar widget works on the client side only, meaning it runs asynchronously to the event database. The only way to get it to work would be to "preload" the calendar with a huge array of dates that have events, which has two major limitations 1) you have to pick an arbitrary date range to preload, and 2) Major performance hit. The only option that seems worthwhile to me is to generate the calendar with AJAX, in which case the widget would have its own template and you could do something like your second request -- create your own version without the week selection buttons.

  • orion
    Avatar
    Community Member
    20 Posts

    Re: Event Calendar highlight dates with events Link to this post

    Can the calendar widget highlight the dates with events on them?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar highlight dates with events Link to this post

    Yup. Use LiveCalendarWidget.

  • orion
    Avatar
    Community Member
    20 Posts

    Re: Event Calendar highlight dates with events Link to this post

    Will it be able to highlight the current date and also the dates with events on them with a different color for the events? I am new to this and appreciate your help.

    Thanks

  • orion
    Avatar
    Community Member
    20 Posts

    Re: Event Calendar highlight dates with events Link to this post

    I used the event calendar widget. is this the same as LiveCalendar widget?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar highlight dates with events Link to this post

    Yeah, it's called the same way on the template.. just use $LiveCalendarWidget instead of $CalendarWidget. Be sure you're creating the new templates in your theme dir so you don't overwrite the core module files.

    If you want a demo, I think it's set up on the event calendar site: eventcalendar.bluehousegroup.com

    Basically it just loads new months with AJAX instead of pure client side script, so it's able to retrieve the dates in a given month that have events., and they get a CSS class that highlights them.

  • orion
    Avatar
    Community Member
    20 Posts

    Re: Event Calendar highlight dates with events Link to this post

    Thank you Uncle Cheese. It worked wonders. I am now trying to change the colors to match the event calendar module. Is there an easy way to do this? and is there a way to resize the calendar?

    3047 Views
Page: 1 2
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.