javra/calendar-bundle
No Category
Project Summary
A bundle to integrate a calendar of Microsoft Outlook and Google in Pimcore.
Readme
Installation
Bundle Installation
For Pimcore >= 11
To install Javra Calendar Bundle for Pimcore 11 or higher, follow the three steps below:
-
Install the required dependencies:
# Install via composer composer require javra/calendar-bundle
-
Make sure the bundle is enabled in the config/bundles.php file. The following lines should be added:
// Add to config/bundles.php return [ // ... Javra\CalendarBundle\JavraCalendarBundle::class => ['all' => true], ];
-
Install the bundle:
# Install the bundle via command-line bin/console pimcore:bundle:install JavraCalendarBundle
-
Add secret keys and credentials in .env file
MS_TENENT_ID= MS_CLIENT_ID= MS_CLIENT_SECRET= CAPTCHA_SITE_KEY= CAPTCHA_SECRET=
-
Include the javra clendar areabrick in pimcore areablock allowed array list.
pimcore_areablock('areablock', { "allowed": [ "javracalendar" ] }
6. Add a email template named 'demo-schedule' and 'demo-response' for calendar schedule.
```php
public function calendarScheduleAction(Request $request): Response
{
return $this->render('@JavraCalendar/email/demo-schedule.html.twig');
}
public function calendarResponseAction(Request $request): Response
{
return $this->render('@JavraCalendar/email/demo-response.html.twig');
}
Variables available in the twig are listed below:
{{applicant_name}}
{{email}}
{{dateTime}}