Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar > have it show Event Title when a date is hovered.

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 406 Views
  • wilsonStaff
    Avatar
    Community Member
    142 Posts

    Event Calendar > have it show Event Title when a date is hovered. Link to this post

    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!

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