My current calendar plugin has filters by category, location and a date selector. Is this all achievable in solspace calendar?


Yes, you can achieve this by using the search parameter on calendar.events just like you would with regular Craft Searching.

search: "customField:myvalue*"

It might also look something like this in your template:

{% set eventOptions = {
  rangeStart: 'now',
  rangeEnd: '3 months',
} %}

{% set events = craft.calendar.events(eventOptions).search("location:test") %}

{% for event in events %}
{% endfor %}

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.