Calendar module - taxonomy filtering

cliffsmith-cio - November 2, 2009 - 15:49

When creating an online calendar, filtering by category is a pretty common requirement. It's easy enough to add a taxonomy term argument to the calendar view, but is there a standard way to create UI controls allowing the user to select which category/categories they'd like to view?

The only way I can think of is to add HTML form elements to the view templates along with JavaScript code that manually computes and redirects to the view URL corresponding to the arguments chosen. For example, if I had five event categories, and wanted to give the user the ability to view events belonging any or all of the categories at once, I'd add checkboxes to one of the view template files, along with a button that would compute the URL http://www.mysite.com/calendar/2009-11/1+4+5. This doesn't seem like a very elegant solution, and I'm wondering if there's another way to do it.

Thanks,
Cliff Smith

 
 

Drupal is a registered trademark of Dries Buytaert.