My current calendar plugin has filters by category, location and a date selector. Is this all achievable in solspace calendar?
1 Answer
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 %}