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.

All other Modules

Discuss all other Modules here.

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

A few Event Calendar Questions


Reply

368 Views

Avatar
DanStephenson

3 October 2011 at 7:37pm (Last edited: 3 October 2011 7:37pm), Community Member, 115 Posts

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.