2

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

1 Answer 1

1

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 and acknowledge you have read our privacy policy.

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