aoloe / grav-plugin-events-ics

Produce an ICS / iCal file for a list of events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Events Ics Plugin

Produce an ICS / iCal file for a list of events.

Currently, this plugin is too tightly integrated with the Events Schedule plugin. (Pull) Requests for separating them are welcome.

The Events Ics Plugin is for Grav CMS. It publishes events as an ICS file

Status

This plugin is not yet in production and it still contains code that is tightly bound to the project that first needed it.

It contains very little code and it should be easy for other users to fork it and adapt to their needs or, even better, make pull requests to make it more configurable.

There are issues in the Github issue tracker that hint to the code that needs to be made more flexible.

Installation

Installing the Events Ics plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

Currently, you need to first install the Events Schedule Plugin.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:

bin/gpm install events-ics

This will install the Events Ics plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/events-ics.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to events-ics. You can find these files on GitHub or via GetGrav.org.

You should now have all the plugin files under

/your/site/grav/user/plugins/events-ics

NOTE: This plugin is a modular component for Grav which requires Grav and the Error and Problems to operate.

Admin Plugin

If you use the admin plugin, you can install directly through the admin plugin by browsing the Plugins tab and clicking on the Add button.

Configuration

Before configuring this plugin, you should copy the user/plugins/events-ics/events-ics.yaml to user/config/plugins/events-ics.yaml and only edit that copy.

Here is the default configuration and an explanation of available options:

enabled: true
route: /calendar.ics

Note that if you use the admin plugin, a file with your configuration, and named events-ics.yaml will be saved in the user/config/plugins/ folder once the configuration is saved in the admin.

Notes

To Do

About

Produce an ICS / iCal file for a list of events.

License:MIT License


Languages

Language:PHP 82.4%Language:Twig 17.6%