This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

hello8602
hello8602

Hi,

I want to incorporate fullcalendar.io into a plugin I am creating for a client. I am pretty new to October so struggle to grasp the best practise in this regard.

I want to accomplish the following:

  • Create an events page in the cms and load my component in it
  • My component will have the jQuery markup on component view page.
  • I would like to use an Ajax handler on the same page to load a json array from the backend (from the component controller, not sure?) which will then be the object used by fullcalendar.io as it's source for events.

It's a relatively simple task which I have done plenty of times in the past, but I am really not sure how this will work using the data-attributes or even the javascript API.

Any suggestions would be welcome :)

Renatio
Renatio

Hi,

I think your plan should work. Components are controllers for Frontend, so you can place there component logic, handlers, etc.

You can add any JS to component page. See docs here.

Use October built in Ajax Framework or custom javascript.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.