I am using the demo templates from Solspace and having a bit of trouble getting filtering working. I have one calendar and I want to be able to filter the events based on a category. I can't get it to work. Do I need to create a calendar for every type of category and then just link to each calendar?


No, you definitely do not need to create a calendar for every type of category. You can put all the events into one calendar and filter by category. Just use the category parameter on the {exp:calendar:events} tag.

{exp:calendar:events category="1"}

Instead of hardcoding the category ID you'll probably want to pass it in via a segment variable. Depending on how you are building your URI's you might find Low Seg2Cat pretty useful.

If that's what you are already trying then please post some template code and I or someone else might be able to give you a more specific answer.


I've used Dynamic Parameters for filtering channels. I'm thinking you can do the same with Category.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.