Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » EventCalendar category filter

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 905 Views
  • mr-andrew
    Community Member
    1 Post

    EventCalendar category filter Link to this post


    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?

  • UncleCheese
    4085 Posts

    Re: EventCalendar category filter Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.