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

EventCalendar category filter


Reply


2 Posts   931 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, 4094 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.