robuust / craft-teamup
Teamup plugin for Craft CMS
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- php: ^8.0
- craftcms/cms: ^4.0
README
Plugin that allows you to import Teamup entries.
Requirements
This plugin requires Craft CMS 4.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require robuust/craft-teamup
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Teamup.
Config
Create a file called teamup.php
in you Craft config folder with the following contents:
<?php return [ // General 'apiToken' => '', // YOUR API TOKEN // Section 'sectionHandle' => 'YOUR_EVENT_SECTION_HANDLE', 'entryTypeHandle' => 'YOUR_EVENT_ENTRY_TYPE_HANDLE', // Fields 'eventIdField' => 'YOUR_EVENT_ID_FIELD', // PlainText 'locationField' => 'YOUR_EVENT_LOCATION_FIELD', // PlainText 'startDateTimeField' => 'YOUR_EVENT_START_DATETIME_FIELD', // DateTime 'endDateTimeField' => 'YOUR_EVENT_END_DATETIME_FIELD', // DateTime 'unitField' => 'YOUR_EVENT_UNIT_FIELD', // PlainText 'descriptionField' => 'YOUR_EVENT_DESCRIPTION_FIELD', // Redactor 'attachmentsField' => 'YOUR_EVENT_ATTACHMENTS_FIELD', // Assets ];
Usage
Run craft teamup/import YOUR_CALENDAR_KEY
on the CLI to import the newest items.
Run craft teamup/import/cleanup YOUR_CALENDAR_KEY
on the CLI to clean up old items.