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

EventCalendar and side menu linking


Go to End


738 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?