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

A few Event Calendar Questions


Go to End


781 Views

Avatar
DanStephenson

Community Member, 116 Posts

3 October 2011 at 7:37pm

Edited: 03/10/2011 7:37pm

Hello everyone,

First I want to thank Uncle Cheese for his great Event Calendar module.
I've been going through the tutorial at: http://doc.silverstripe.org/old/recipes:extending_the_event_calendar and have a few questions I am hoping to get some help with:

1. Now that I've extended my Workshops to have categories, how can I show the latest event by category on the homepage? The latest 2 Finance events, latest 2 Industry events, and latest 2 Administration events? I can get all upcoming events showing using the UpcomingEvents function, but can't figure out how to sort this it by category.

2. Is there a way that I can show all events for the next x period of time? For example - if I want to create a page that will always show the next 6 months worth of events? I'd like this to dynamically update, so no matter the date, it always shows the next 6 months worth.