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 how to give a calendar_event day a different class than a non_event_day for calendarwidget???


Go to End


3 Posts   975 Views

Avatar
TF-35Lightning

Community Member, 137 Posts

6 August 2010 at 7:30pm

Hi all / Unclecheese,

I am trying to modify (once I understand) your event calendar widget (the month overview) view so that any days that have a calendar event have a different class / change to a different color than non calendar event days / standard nothing happening days.

Is this an option already in the calendar? If not where abouts would I have to make this modification to get the calendar_event days a different color than the rest in the CalendarWidget?

I thought this was present into the color, it appears not???

Any help would be geat

Avatar
TF-35Lightning

Community Member, 137 Posts

6 August 2010 at 8:30pm

$LiveCalendarWidget appears to have done the trick.

Now to try and apply a tool tip style hover to the has event class.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

7 August 2010 at 1:55am

Keep in mind, the nice thing about LiveCalendarWidget is that it is ViewableData with its own controller and a template, meaning it can be easily extended. You can place LiveCalendarWidget.ss in your theme Includes folder, and override the structure as needed.