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 highlight dates with events


Go to End
Reply

12 Posts   3079 Views

Avatar
mage

6 July 2009 at 5:52pm Community Member, 10 Posts

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

Avatar
UncleCheese

7 July 2009 at 1:32am 4085 Posts

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.

Avatar
orion

12 January 2010 at 10:19am Community Member, 20 Posts

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

Avatar
UncleCheese

12 January 2010 at 10:40am 4085 Posts

Yup. Use LiveCalendarWidget.

Avatar
orion

12 January 2010 at 12:15pm Community Member, 20 Posts

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

Avatar
orion

12 January 2010 at 12:59pm Community Member, 20 Posts

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

Avatar
UncleCheese

12 January 2010 at 2:05pm 4085 Posts

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.

Avatar
orion

14 January 2010 at 6:11am Community Member, 20 Posts

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?

Go to Top