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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Event Calendar > have it show Event Title when a date is hovered.


Go to End


641 Views

Avatar
wilsonStaff

Community Member, 143 Posts

26 October 2011 at 4:16pm

Hi to all, do you know how i can retrieve title event when i hover a date on the calendar, date that has an event?

Easiest way is to use the title attribute and the tooltip box. I then need to know that to insert within the title="???"

Tried this. Didnt work.

<a href="calendrier" title="<% control Events %>$Title.Event<% end_control %> ">$Number</a>

Tried that. No better.

<a href="calendrier" title="$Title.Event ">$Number</a>

- - -

Also tried to add and Events data into CalendarUI.class.php

$days->push(new ArrayData(array(
...
'Events' => $this->calendar->data()->Events(null, $start, $end)
)));

That gives me an error - Undefined variable:start

- - -

Should be a simple thing right?

Thanks!