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 > have it show Event Title when a date is hovered.


Go to End


762 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!