Page 1 of 1

CGCalendar - Can't filter category in fullcalendar

Posted: Wed Mar 28, 2018 2:56 pm
by webform
Im trying to display a fullcalendar view with only one category, but events in all categories is displayed.

Isn't it possible to filter fullcalendar view by category? (It works on upcoming list view).

Code: Select all

{cms_module module='CGCalendar' category='My Category'}
Cms Version: 2.2.7
CGCalendar: 2.5.1

Re: CGCalendar - Can't filter category in fullcalendar

Posted: Wed Mar 28, 2018 9:18 pm
by velden
Try this in your Full Calendar view template:

Replace:

Code: Select all

{module_action_url action=ajax_fetchevents forajax=1  assign='fetch_url'}
with:

Code: Select all

{module_action_url action=ajax_fetchevents forajax=1 category=$actionparams.category|default:'' assign='fetch_url'}

Re: CGCalendar - Can't filter category in fullcalendar

Posted: Wed Mar 28, 2018 9:55 pm
by webform
Works like a charm. Thanks ;D