Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/includable/craft-ics-importer

Imports ICS calendar feeds that can be used in your templates.
https://github.com/includable/craft-ics-importer

craft craft-plugin craft3 craftcms craftcms-plugin

Last synced: 26 days ago
JSON representation

Imports ICS calendar feeds that can be used in your templates.

Awesome Lists containing this project

README

        

# ICS importer plugin for Craft CMS 3.x

Imports ICS calendar feeds that can be used in your templates.

## Requirements

This plugin requires Craft CMS 3.0.0-RC1 or later.

## Installation

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

cd /path/to/project

2. Then tell Composer to load the plugin:

composer require includable/craft-ics-importer

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for ICS importer.

## Using this in your template

```twig
{% set events = craft.icsImporter.feed({
url: 'https:/.../events.ics',
cache: 86400
}) %}


Title
Start
End
Description
Location
URL

{% for event in events %}

{{ event.title }}
{{ event.start | date('d-m-Y H:i') }}
{{ event.end | date('d-m-Y H:i') }}
{{ event.description }}
{{ event.location }}
{{ event.url }}

{% endfor %}

```

--------

Brought to you by [Includable](https://includable.com/)