- π¨π¦Canada joseph.olstad
This functionality is broken after upgrading from Drupal 10.2 to Drupal 10.3.
TO get this functionality working
downgrade to Drupal 10.2
version 2.1.1 giving WSOD when calling calender_link() inside views global:custom text field twig, Here is the drupal log error:
Drupal\calendar_link\CalendarLinkException: Could not get valid string from input. in Drupal\calendar_link\Twig\CalendarLinkTwigExtension->getString() (line 204 of /mnt/www/html/sitecom/docroot/modules/contrib/calendar_link/src/Twig/CalendarLinkTwigExtension.php).
Place this code in the Global: custom text field in view(page).
{% set link = calendar_link('ics', title, date(field_event_dates_1), date(field_event_dates_2), FALSE, field_event_city) %}
or
{% set link = calendar_link('ics', 'testing title', date('Dec 16, 2021'), date('Dec 17, 2021'), FALSE, 'testing description', 'houston') %}
<div class="myCal" data="{{ link }}">Add to Calendar</div>
Fixed
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This functionality is broken after upgrading from Drupal 10.2 to Drupal 10.3.
TO get this functionality working
downgrade to Drupal 10.2