Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Event_calendar --> showing $Event_Title on hover

Discuss all other Modules here.

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

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

    Re: Event_calendar --> showing $Event_Title on hover Link to this post

    UDATE

    Here's my next attempt.

    <td class="$Today $OutOfMonth $CurrentDay $HasEvent">
                   <% if Events %>
                   $Number
                      <% control Events %>
                         <a href="$Event.Link" title="{$Event.Title} - {$Event.Conferencier}"></a>
                      <% end_control %>
                   <% else %>
                      <a href="" title="Pas d'évènements pour cette journée">$Number</a>
                   <% end_if %>
                </td>

    if $Number is declared after <% if Events %>, it displays dates correctly. As pic below describes (more below pic)

    But it causes problems:

    1) as it has no <a href> it BLOCKS the hovering of the event under the numbering
    2) therefore, cant be clicked to get to the $Event.Link nor hovered to access $Event.Title

    So i REALLY need to access that $Number INSIDE this

    <% control Events %>
       <a href="$Event.Link" title="{$Event.Title} - {$Event.Conferencier}">$Event.Number</a>
    <% end_control %>

    is there such a thing as $Event.Number????

    I cant use $Event.Dates because of repeating events (it displays ALL dates that the event occures).

  • wilsonStaff
    Avatar
    Community Member
    142 Posts

    Re: Event_calendar --> showing $Event_Title on hover Link to this post

    Hi, still looking.... The code below....

    <td class="$Today $OutOfMonth $CurrentDay $HasEvent">
          <% if Events %>
             $Number
                <% control Events %>
                   <a href="$Event.Link" title="{$Event.Title} - {$Event.Conferencier}"></a>
                <% end_control %>
          <% else %>
                <a href="" title="Pas d'évènements pour cette journée">$Number</a>
          <% end_if %>
    </td>

    returns this (which is ALMOST what i want), i.e. :

       - shows $Event.Title on hover
       - goes to $Event.Link when clicked

    Problem is this (see pic);

    - i want whats in red to be clickable / hoverable
    - actually, the code $Number (that works best that i can have it to....) correctly displays dates that has an event
    BUT
    - it blocks whats behind (<a href="$Event.Link" title="{$Event.Title} - {$Event.Conferencier}"></a>) to be clicked or hovered
    RESULTS
    only a tiny part (in blue) is actually clickable / hoverable

    QUESTION

    Is there a way to MAKE that $Number data kinda "see-thru" via HTML?????

    OR BETTER

    to access that $Number INSIDE the <% control Event %> ??

    Thanks!

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