📜 ⬆️ ⬇️

Calendar Planner for MODX Revolution

Recently, a new version of MODX Revolution - 2.1-pl has been released, and I decided to mark this business by writing a new extension.

At first, I just wanted to adapt my old development for Revo, for the internal site of one organization, but it turned out that I rewrote everything anew.

The whole frontend takes on a wonderful jQuery fullCalendar plugin . He has only one drawback - he does not know how to work with the server. That is, create / modify events. Therefore, the entire calendar backend had to be written independently on api MODX.


')
At the moment, the snippet can do the following:

Thus, it turns out a simple scheduler for the organization, in which you can write your own notes, as well as public ones.


The installation is simple, through the management of MODX packages. The settings are only 3:
&calendarTpl -
&editEventTpl - /
&viewEventTpl -

There will be suggestions in the comments - add more.

Are used:

If your plugins are not connected, they will need to be uncommented in the tpl.Calendar chunk .

Important. When you first start after installation, you need to uncomment the last line in the Calendar snippet. After a single download page with the calendar - comment out back. This line creates the desired table in the database for storing events.

In order for the switch to show only his / only common tasks to work, the MODX parameter session_handler_class in the admin panel should be empty. Change in admin, in engine settings.


Styles can be changed in /assets/components/calendar/css/calendar.css .

Download installation package for MODX Revolution

Source: https://habr.com/ru/post/120525/


All Articles