Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/includable/craft-ics-importer
- Owner: includable
- Created: 2018-01-09T21:00:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T10:11:46.000Z (about 4 years ago)
- Last Synced: 2024-03-26T14:10:54.626Z (9 months ago)
- Topics: craft, craft-plugin, craft3, craftcms, craftcms-plugin
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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/)