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

EventCalendar and side menu linking


Go to End


555 Views

Avatar
JonC

Community Member, 8 Posts

26 October 2011 at 7:31pm

I find myself needing to implement EventCalendar with a sidebar showing the list of events on the main event summary page and each individual event page as well, with the current event selected highlighted in the side menu.

This is the (crude) code I put together in order to get the events list on CalendarEvent pages. However, I cannot see a way to make them highlight, as $LinkingMode doesn't work.

<% control Parent.Events %>
    <li><a class="$LinkingMode" href="$Link" title="Go to $Title">$EventTitle</a></li>
<% end_control %>

Is there a way to do this?