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 category filter


Go to End


2 Posts   1286 Views

Avatar
mr-andrew

Community Member, 1 Post

14 March 2010 at 6:26am

Edited: 14/03/2010 6:27am

Hi

I'm not very technical, so this may be quiet obvious, but I want to filter my calendar by category. I have added the category drop down to Calendar.php and it works fine, but I want to create a list of links to my various category pages in my Calendar and CalendarEvent pages. How would I go about doing this?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

14 March 2010 at 9:18am

First, you shouldn't be modifying Calendar.php. You need to create a subclass and add your custom fields there. There's a good write-up in the docs called "Extending the event calendar" which walks you through creating a subclass with a category attribute and filter.